<?php
/**
 * <https://y.st./>
 * Copyright © 2017 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => '4-bit arithmetic logic unit',
	'<{subtitle}>' => 'Written in <span title="Software Engineering 1">CS 2401</span>, finalised on 2017-12-06',
	'<{copyright year}>' => '2017',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<h2>Adder</h2>
<img src="/img/CC_BY-SA_4.0/y.st./coursework/CS1104/4-bit_adder.png" alt="4-bit adder" class="framed-centred-image" width="710" height="400"/>
<blockquote>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
&lt;project source=&quot;2.7.1&quot; version=&quot;1.0&quot;&gt;
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
&lt;lib desc=&quot;#Wiring&quot; name=&quot;0&quot;/&gt;
  &lt;lib desc=&quot;#Gates&quot; name=&quot;1&quot;/&gt;
  &lt;lib desc=&quot;#Plexers&quot; name=&quot;2&quot;/&gt;
  &lt;lib desc=&quot;#Arithmetic&quot; name=&quot;3&quot;/&gt;
  &lt;lib desc=&quot;#Memory&quot; name=&quot;4&quot;/&gt;
  &lt;lib desc=&quot;#I/O&quot; name=&quot;5&quot;/&gt;
  &lt;lib desc=&quot;#Base&quot; name=&quot;6&quot;&gt;
    &lt;tool name=&quot;Text Tool&quot;&gt;
      &lt;a name=&quot;text&quot; val=&quot;&quot;/&gt;
      &lt;a name=&quot;font&quot; val=&quot;SansSerif plain 12&quot;/&gt;
      &lt;a name=&quot;halign&quot; val=&quot;center&quot;/&gt;
      &lt;a name=&quot;valign&quot; val=&quot;base&quot;/&gt;
    &lt;/tool&gt;
  &lt;/lib&gt;
  &lt;main name=&quot;main&quot;/&gt;
  &lt;options&gt;
    &lt;a name=&quot;gateUndefined&quot; val=&quot;ignore&quot;/&gt;
    &lt;a name=&quot;simlimit&quot; val=&quot;1000&quot;/&gt;
    &lt;a name=&quot;simrand&quot; val=&quot;0&quot;/&gt;
  &lt;/options&gt;
  &lt;mappings&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Button2&quot; name=&quot;Menu Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Button3&quot; name=&quot;Menu Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Ctrl Button1&quot; name=&quot;Menu Tool&quot;/&gt;
  &lt;/mappings&gt;
  &lt;toolbar&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Poke Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Edit Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Text Tool&quot;&gt;
      &lt;a name=&quot;text&quot; val=&quot;&quot;/&gt;
      &lt;a name=&quot;font&quot; val=&quot;SansSerif plain 12&quot;/&gt;
      &lt;a name=&quot;halign&quot; val=&quot;center&quot;/&gt;
      &lt;a name=&quot;valign&quot; val=&quot;base&quot;/&gt;
    &lt;/tool&gt;
    &lt;sep/&gt;
    &lt;tool lib=&quot;0&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
    &lt;/tool&gt;
    &lt;tool lib=&quot;0&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;output&quot; val=&quot;true&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;east&quot;/&gt;
    &lt;/tool&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;NOT Gate&quot;/&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;OR Gate&quot;/&gt;
  &lt;/toolbar&gt;
  &lt;circuit name=&quot;main&quot;&gt;
    &lt;a name=&quot;circuit&quot; val=&quot;main&quot;/&gt;
    &lt;a name=&quot;clabel&quot; val=&quot;&quot;/&gt;
    &lt;a name=&quot;clabelup&quot; val=&quot;east&quot;/&gt;
    &lt;a name=&quot;clabelfont&quot; val=&quot;SansSerif plain 12&quot;/&gt;
    &lt;wire from=&quot;(140,220)&quot; to=&quot;(330,220)&quot;/&gt;
    &lt;wire from=&quot;(110,380)&quot; to=&quot;(170,380)&quot;/&gt;
    &lt;wire from=&quot;(100,50)&quot; to=&quot;(160,50)&quot;/&gt;
    &lt;wire from=&quot;(30,210)&quot; to=&quot;(30,350)&quot;/&gt;
    &lt;wire from=&quot;(270,350)&quot; to=&quot;(270,360)&quot;/&gt;
    &lt;wire from=&quot;(430,130)&quot; to=&quot;(550,130)&quot;/&gt;
    &lt;wire from=&quot;(100,100)&quot; to=&quot;(150,100)&quot;/&gt;
    &lt;wire from=&quot;(170,90)&quot; to=&quot;(170,110)&quot;/&gt;
    &lt;wire from=&quot;(100,70)&quot; to=&quot;(140,70)&quot;/&gt;
    &lt;wire from=&quot;(360,240)&quot; to=&quot;(360,270)&quot;/&gt;
    &lt;wire from=&quot;(250,130)&quot; to=&quot;(250,160)&quot;/&gt;
    &lt;wire from=&quot;(100,120)&quot; to=&quot;(130,120)&quot;/&gt;
    &lt;wire from=&quot;(150,100)&quot; to=&quot;(150,200)&quot;/&gt;
    &lt;wire from=&quot;(120,280)&quot; to=&quot;(120,320)&quot;/&gt;
    &lt;wire from=&quot;(630,50)&quot; to=&quot;(630,210)&quot;/&gt;
    &lt;wire from=&quot;(320,200)&quot; to=&quot;(660,200)&quot;/&gt;
    &lt;wire from=&quot;(500,330)&quot; to=&quot;(520,330)&quot;/&gt;
    &lt;wire from=&quot;(500,250)&quot; to=&quot;(520,250)&quot;/&gt;
    &lt;wire from=&quot;(120,60)&quot; to=&quot;(120,230)&quot;/&gt;
    &lt;wire from=&quot;(480,150)&quot; to=&quot;(500,150)&quot;/&gt;
    &lt;wire from=&quot;(480,110)&quot; to=&quot;(500,110)&quot;/&gt;
    &lt;wire from=&quot;(480,30)&quot; to=&quot;(500,30)&quot;/&gt;
    &lt;wire from=&quot;(630,210)&quot; to=&quot;(660,210)&quot;/&gt;
    &lt;wire from=&quot;(40,390)&quot; to=&quot;(60,390)&quot;/&gt;
    &lt;wire from=&quot;(130,120)&quot; to=&quot;(130,230)&quot;/&gt;
    &lt;wire from=&quot;(510,270)&quot; to=&quot;(510,310)&quot;/&gt;
    &lt;wire from=&quot;(490,50)&quot; to=&quot;(490,90)&quot;/&gt;
    &lt;wire from=&quot;(510,310)&quot; to=&quot;(520,310)&quot;/&gt;
    &lt;wire from=&quot;(510,270)&quot; to=&quot;(520,270)&quot;/&gt;
    &lt;wire from=&quot;(100,40)&quot; to=&quot;(180,40)&quot;/&gt;
    &lt;wire from=&quot;(490,90)&quot; to=&quot;(500,90)&quot;/&gt;
    &lt;wire from=&quot;(490,50)&quot; to=&quot;(500,50)&quot;/&gt;
    &lt;wire from=&quot;(240,160)&quot; to=&quot;(250,160)&quot;/&gt;
    &lt;wire from=&quot;(50,370)&quot; to=&quot;(60,370)&quot;/&gt;
    &lt;wire from=&quot;(120,280)&quot; to=&quot;(130,280)&quot;/&gt;
    &lt;wire from=&quot;(340,220)&quot; to=&quot;(340,280)&quot;/&gt;
    &lt;wire from=&quot;(100,90)&quot; to=&quot;(170,90)&quot;/&gt;
    &lt;wire from=&quot;(420,90)&quot; to=&quot;(490,90)&quot;/&gt;
    &lt;wire from=&quot;(580,260)&quot; to=&quot;(590,260)&quot;/&gt;
    &lt;wire from=&quot;(560,40)&quot; to=&quot;(570,40)&quot;/&gt;
    &lt;wire from=&quot;(190,270)&quot; to=&quot;(190,330)&quot;/&gt;
    &lt;wire from=&quot;(330,220)&quot; to=&quot;(330,240)&quot;/&gt;
    &lt;wire from=&quot;(340,150)&quot; to=&quot;(340,180)&quot;/&gt;
    &lt;wire from=&quot;(300,170)&quot; to=&quot;(330,170)&quot;/&gt;
    &lt;wire from=&quot;(310,180)&quot; to=&quot;(340,180)&quot;/&gt;
    &lt;wire from=&quot;(330,240)&quot; to=&quot;(360,240)&quot;/&gt;
    &lt;wire from=&quot;(260,380)&quot; to=&quot;(280,380)&quot;/&gt;
    &lt;wire from=&quot;(330,170)&quot; to=&quot;(350,170)&quot;/&gt;
    &lt;wire from=&quot;(250,60)&quot; to=&quot;(250,100)&quot;/&gt;
    &lt;wire from=&quot;(100,60)&quot; to=&quot;(120,60)&quot;/&gt;
    &lt;wire from=&quot;(430,280)&quot; to=&quot;(430,320)&quot;/&gt;
    &lt;wire from=&quot;(170,170)&quot; to=&quot;(190,170)&quot;/&gt;
    &lt;wire from=&quot;(410,60)&quot; to=&quot;(410,100)&quot;/&gt;
    &lt;wire from=&quot;(110,110)&quot; to=&quot;(110,220)&quot;/&gt;
    &lt;wire from=&quot;(430,280)&quot; to=&quot;(440,280)&quot;/&gt;
    &lt;wire from=&quot;(410,60)&quot; to=&quot;(420,60)&quot;/&gt;
    &lt;wire from=&quot;(270,360)&quot; to=&quot;(280,360)&quot;/&gt;
    &lt;wire from=&quot;(340,150)&quot; to=&quot;(350,150)&quot;/&gt;
    &lt;wire from=&quot;(180,270)&quot; to=&quot;(190,270)&quot;/&gt;
    &lt;wire from=&quot;(180,150)&quot; to=&quot;(190,150)&quot;/&gt;
    &lt;wire from=&quot;(250,60)&quot; to=&quot;(260,60)&quot;/&gt;
    &lt;wire from=&quot;(620,150)&quot; to=&quot;(620,210)&quot;/&gt;
    &lt;wire from=&quot;(420,170)&quot; to=&quot;(500,170)&quot;/&gt;
    &lt;wire from=&quot;(110,320)&quot; to=&quot;(120,320)&quot;/&gt;
    &lt;wire from=&quot;(70,80)&quot; to=&quot;(80,80)&quot;/&gt;
    &lt;wire from=&quot;(100,110)&quot; to=&quot;(110,110)&quot;/&gt;
    &lt;wire from=&quot;(500,270)&quot; to=&quot;(500,330)&quot;/&gt;
    &lt;wire from=&quot;(480,50)&quot; to=&quot;(480,110)&quot;/&gt;
    &lt;wire from=&quot;(40,330)&quot; to=&quot;(40,390)&quot;/&gt;
    &lt;wire from=&quot;(550,160)&quot; to=&quot;(560,160)&quot;/&gt;
    &lt;wire from=&quot;(130,230)&quot; to=&quot;(320,230)&quot;/&gt;
    &lt;wire from=&quot;(550,130)&quot; to=&quot;(550,140)&quot;/&gt;
    &lt;wire from=&quot;(180,40)&quot; to=&quot;(180,50)&quot;/&gt;
    &lt;wire from=&quot;(330,370)&quot; to=&quot;(450,370)&quot;/&gt;
    &lt;wire from=&quot;(40,250)&quot; to=&quot;(40,330)&quot;/&gt;
    &lt;wire from=&quot;(250,130)&quot; to=&quot;(420,130)&quot;/&gt;
    &lt;wire from=&quot;(190,250)&quot; to=&quot;(190,270)&quot;/&gt;
    &lt;wire from=&quot;(430,130)&quot; to=&quot;(430,160)&quot;/&gt;
    &lt;wire from=&quot;(160,310)&quot; to=&quot;(200,310)&quot;/&gt;
    &lt;wire from=&quot;(170,350)&quot; to=&quot;(170,380)&quot;/&gt;
    &lt;wire from=&quot;(170,350)&quot; to=&quot;(270,350)&quot;/&gt;
    &lt;wire from=&quot;(40,220)&quot; to=&quot;(40,250)&quot;/&gt;
    &lt;wire from=&quot;(580,280)&quot; to=&quot;(580,320)&quot;/&gt;
    &lt;wire from=&quot;(560,60)&quot; to=&quot;(560,100)&quot;/&gt;
    &lt;wire from=&quot;(650,230)&quot; to=&quot;(650,270)&quot;/&gt;
    &lt;wire from=&quot;(150,200)&quot; to=&quot;(310,200)&quot;/&gt;
    &lt;wire from=&quot;(400,160)&quot; to=&quot;(430,160)&quot;/&gt;
    &lt;wire from=&quot;(50,270)&quot; to=&quot;(50,310)&quot;/&gt;
    &lt;wire from=&quot;(50,230)&quot; to=&quot;(50,270)&quot;/&gt;
    &lt;wire from=&quot;(190,330)&quot; to=&quot;(190,370)&quot;/&gt;
    &lt;wire from=&quot;(40,250)&quot; to=&quot;(60,250)&quot;/&gt;
    &lt;wire from=&quot;(40,330)&quot; to=&quot;(60,330)&quot;/&gt;
    &lt;wire from=&quot;(420,320)&quot; to=&quot;(430,320)&quot;/&gt;
    &lt;wire from=&quot;(400,100)&quot; to=&quot;(410,100)&quot;/&gt;
    &lt;wire from=&quot;(490,270)&quot; to=&quot;(500,270)&quot;/&gt;
    &lt;wire from=&quot;(470,50)&quot; to=&quot;(480,50)&quot;/&gt;
    &lt;wire from=&quot;(260,320)&quot; to=&quot;(270,320)&quot;/&gt;
    &lt;wire from=&quot;(310,50)&quot; to=&quot;(320,50)&quot;/&gt;
    &lt;wire from=&quot;(240,100)&quot; to=&quot;(250,100)&quot;/&gt;
    &lt;wire from=&quot;(50,310)&quot; to=&quot;(60,310)&quot;/&gt;
    &lt;wire from=&quot;(50,270)&quot; to=&quot;(60,270)&quot;/&gt;
    &lt;wire from=&quot;(160,190)&quot; to=&quot;(300,190)&quot;/&gt;
    &lt;wire from=&quot;(120,260)&quot; to=&quot;(130,260)&quot;/&gt;
    &lt;wire from=&quot;(70,130)&quot; to=&quot;(80,130)&quot;/&gt;
    &lt;wire from=&quot;(330,110)&quot; to=&quot;(330,170)&quot;/&gt;
    &lt;wire from=&quot;(450,310)&quot; to=&quot;(450,370)&quot;/&gt;
    &lt;wire from=&quot;(50,310)&quot; to=&quot;(50,370)&quot;/&gt;
    &lt;wire from=&quot;(30,350)&quot; to=&quot;(160,350)&quot;/&gt;
    &lt;wire from=&quot;(580,280)&quot; to=&quot;(590,280)&quot;/&gt;
    &lt;wire from=&quot;(170,110)&quot; to=&quot;(170,170)&quot;/&gt;
    &lt;wire from=&quot;(170,30)&quot; to=&quot;(170,90)&quot;/&gt;
    &lt;wire from=&quot;(560,60)&quot; to=&quot;(570,60)&quot;/&gt;
    &lt;wire from=&quot;(610,150)&quot; to=&quot;(620,150)&quot;/&gt;
    &lt;wire from=&quot;(650,230)&quot; to=&quot;(660,230)&quot;/&gt;
    &lt;wire from=&quot;(450,310)&quot; to=&quot;(510,310)&quot;/&gt;
    &lt;wire from=&quot;(340,220)&quot; to=&quot;(660,220)&quot;/&gt;
    &lt;wire from=&quot;(160,390)&quot; to=&quot;(210,390)&quot;/&gt;
    &lt;wire from=&quot;(160,50)&quot; to=&quot;(160,190)&quot;/&gt;
    &lt;wire from=&quot;(320,230)&quot; to=&quot;(320,250)&quot;/&gt;
    &lt;wire from=&quot;(270,300)&quot; to=&quot;(270,320)&quot;/&gt;
    &lt;wire from=&quot;(310,180)&quot; to=&quot;(310,200)&quot;/&gt;
    &lt;wire from=&quot;(300,170)&quot; to=&quot;(300,190)&quot;/&gt;
    &lt;wire from=&quot;(320,50)&quot; to=&quot;(320,200)&quot;/&gt;
    &lt;wire from=&quot;(500,250)&quot; to=&quot;(500,270)&quot;/&gt;
    &lt;wire from=&quot;(480,30)&quot; to=&quot;(480,50)&quot;/&gt;
    &lt;wire from=&quot;(140,70)&quot; to=&quot;(140,220)&quot;/&gt;
    &lt;wire from=&quot;(350,250)&quot; to=&quot;(350,330)&quot;/&gt;
    &lt;wire from=&quot;(330,30)&quot; to=&quot;(330,110)&quot;/&gt;
    &lt;wire from=&quot;(320,250)&quot; to=&quot;(350,250)&quot;/&gt;
    &lt;wire from=&quot;(350,330)&quot; to=&quot;(370,330)&quot;/&gt;
    &lt;wire from=&quot;(350,250)&quot; to=&quot;(370,250)&quot;/&gt;
    &lt;wire from=&quot;(330,110)&quot; to=&quot;(350,110)&quot;/&gt;
    &lt;wire from=&quot;(330,30)&quot; to=&quot;(350,30)&quot;/&gt;
    &lt;wire from=&quot;(160,310)&quot; to=&quot;(160,350)&quot;/&gt;
    &lt;wire from=&quot;(160,350)&quot; to=&quot;(160,390)&quot;/&gt;
    &lt;wire from=&quot;(180,50)&quot; to=&quot;(180,90)&quot;/&gt;
    &lt;wire from=&quot;(200,270)&quot; to=&quot;(200,310)&quot;/&gt;
    &lt;wire from=&quot;(360,270)&quot; to=&quot;(360,310)&quot;/&gt;
    &lt;wire from=&quot;(340,50)&quot; to=&quot;(340,90)&quot;/&gt;
    &lt;wire from=&quot;(170,110)&quot; to=&quot;(190,110)&quot;/&gt;
    &lt;wire from=&quot;(170,30)&quot; to=&quot;(190,30)&quot;/&gt;
    &lt;wire from=&quot;(420,90)&quot; to=&quot;(420,130)&quot;/&gt;
    &lt;wire from=&quot;(420,130)&quot; to=&quot;(420,170)&quot;/&gt;
    &lt;wire from=&quot;(190,370)&quot; to=&quot;(210,370)&quot;/&gt;
    &lt;wire from=&quot;(190,330)&quot; to=&quot;(210,330)&quot;/&gt;
    &lt;wire from=&quot;(190,250)&quot; to=&quot;(210,250)&quot;/&gt;
    &lt;wire from=&quot;(480,110)&quot; to=&quot;(480,150)&quot;/&gt;
    &lt;wire from=&quot;(430,260)&quot; to=&quot;(440,260)&quot;/&gt;
    &lt;wire from=&quot;(410,40)&quot; to=&quot;(420,40)&quot;/&gt;
    &lt;wire from=&quot;(270,260)&quot; to=&quot;(280,260)&quot;/&gt;
    &lt;wire from=&quot;(270,300)&quot; to=&quot;(280,300)&quot;/&gt;
    &lt;wire from=&quot;(30,210)&quot; to=&quot;(620,210)&quot;/&gt;
    &lt;wire from=&quot;(360,310)&quot; to=&quot;(370,310)&quot;/&gt;
    &lt;wire from=&quot;(360,270)&quot; to=&quot;(370,270)&quot;/&gt;
    &lt;wire from=&quot;(330,280)&quot; to=&quot;(340,280)&quot;/&gt;
    &lt;wire from=&quot;(340,90)&quot; to=&quot;(350,90)&quot;/&gt;
    &lt;wire from=&quot;(340,50)&quot; to=&quot;(350,50)&quot;/&gt;
    &lt;wire from=&quot;(180,90)&quot; to=&quot;(190,90)&quot;/&gt;
    &lt;wire from=&quot;(180,50)&quot; to=&quot;(190,50)&quot;/&gt;
    &lt;wire from=&quot;(200,270)&quot; to=&quot;(210,270)&quot;/&gt;
    &lt;wire from=&quot;(200,310)&quot; to=&quot;(210,310)&quot;/&gt;
    &lt;wire from=&quot;(250,40)&quot; to=&quot;(260,40)&quot;/&gt;
    &lt;wire from=&quot;(340,90)&quot; to=&quot;(340,150)&quot;/&gt;
    &lt;wire from=&quot;(40,220)&quot; to=&quot;(110,220)&quot;/&gt;
    &lt;wire from=&quot;(50,230)&quot; to=&quot;(120,230)&quot;/&gt;
    &lt;wire from=&quot;(680,190)&quot; to=&quot;(690,190)&quot;/&gt;
    &lt;wire from=&quot;(570,320)&quot; to=&quot;(580,320)&quot;/&gt;
    &lt;wire from=&quot;(180,90)&quot; to=&quot;(180,150)&quot;/&gt;
    &lt;wire from=&quot;(550,100)&quot; to=&quot;(560,100)&quot;/&gt;
    &lt;wire from=&quot;(550,140)&quot; to=&quot;(560,140)&quot;/&gt;
    &lt;wire from=&quot;(620,50)&quot; to=&quot;(630,50)&quot;/&gt;
    &lt;wire from=&quot;(640,270)&quot; to=&quot;(650,270)&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(330,370)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(680,190)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(250,40)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(70,130)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(110,380)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(420,320)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(260,320)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(260,380)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(430,260)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(550,160)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(330,280)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(310,50)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(490,270)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(80,80)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(110,320)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(180,270)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(120,260)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(80,130)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(400,100)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(560,40)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(410,40)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(610,150)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(580,260)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(690,190)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;output&quot; val=&quot;true&quot;/&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;east&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(640,270)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(70,80)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(400,160)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(470,50)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(240,100)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(240,160)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(550,100)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(570,320)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(620,50)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(270,260)&quot; name=&quot;NAND Gate&quot;/&gt;
  &lt;/circuit&gt;
&lt;/project&gt;</code></pre>
</blockquote>
<h2>Subtracter</h2>
<img src="/img/CC_BY-SA_4.0/y.st./coursework/CS1104/4-bit_subtracter.png" alt="4-bit subtracter" class="framed-centred-image" width="890" height="400"/>
<blockquote>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
&lt;project source=&quot;2.7.1&quot; version=&quot;1.0&quot;&gt;
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
&lt;lib desc=&quot;#Wiring&quot; name=&quot;0&quot;/&gt;
  &lt;lib desc=&quot;#Gates&quot; name=&quot;1&quot;/&gt;
  &lt;lib desc=&quot;#Plexers&quot; name=&quot;2&quot;/&gt;
  &lt;lib desc=&quot;#Arithmetic&quot; name=&quot;3&quot;/&gt;
  &lt;lib desc=&quot;#Memory&quot; name=&quot;4&quot;/&gt;
  &lt;lib desc=&quot;#I/O&quot; name=&quot;5&quot;/&gt;
  &lt;lib desc=&quot;#Base&quot; name=&quot;6&quot;&gt;
    &lt;tool name=&quot;Text Tool&quot;&gt;
      &lt;a name=&quot;text&quot; val=&quot;&quot;/&gt;
      &lt;a name=&quot;font&quot; val=&quot;SansSerif plain 12&quot;/&gt;
      &lt;a name=&quot;halign&quot; val=&quot;center&quot;/&gt;
      &lt;a name=&quot;valign&quot; val=&quot;base&quot;/&gt;
    &lt;/tool&gt;
  &lt;/lib&gt;
  &lt;main name=&quot;main&quot;/&gt;
  &lt;options&gt;
    &lt;a name=&quot;gateUndefined&quot; val=&quot;ignore&quot;/&gt;
    &lt;a name=&quot;simlimit&quot; val=&quot;1000&quot;/&gt;
    &lt;a name=&quot;simrand&quot; val=&quot;0&quot;/&gt;
  &lt;/options&gt;
  &lt;mappings&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Button2&quot; name=&quot;Menu Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Button3&quot; name=&quot;Menu Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Ctrl Button1&quot; name=&quot;Menu Tool&quot;/&gt;
  &lt;/mappings&gt;
  &lt;toolbar&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Poke Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Edit Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Text Tool&quot;&gt;
      &lt;a name=&quot;text&quot; val=&quot;&quot;/&gt;
      &lt;a name=&quot;font&quot; val=&quot;SansSerif plain 12&quot;/&gt;
      &lt;a name=&quot;halign&quot; val=&quot;center&quot;/&gt;
      &lt;a name=&quot;valign&quot; val=&quot;base&quot;/&gt;
    &lt;/tool&gt;
    &lt;sep/&gt;
    &lt;tool lib=&quot;0&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
    &lt;/tool&gt;
    &lt;tool lib=&quot;0&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;output&quot; val=&quot;true&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;east&quot;/&gt;
    &lt;/tool&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;NOT Gate&quot;/&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;OR Gate&quot;/&gt;
  &lt;/toolbar&gt;
  &lt;circuit name=&quot;main&quot;&gt;
    &lt;a name=&quot;circuit&quot; val=&quot;main&quot;/&gt;
    &lt;a name=&quot;clabel&quot; val=&quot;&quot;/&gt;
    &lt;a name=&quot;clabelup&quot; val=&quot;east&quot;/&gt;
    &lt;a name=&quot;clabelfont&quot; val=&quot;SansSerif plain 12&quot;/&gt;
    &lt;wire from=&quot;(190,210)&quot; to=&quot;(500,210)&quot;/&gt;
    &lt;wire from=&quot;(440,360)&quot; to=&quot;(440,370)&quot;/&gt;
    &lt;wire from=&quot;(360,40)&quot; to=&quot;(360,60)&quot;/&gt;
    &lt;wire from=&quot;(180,80)&quot; to=&quot;(180,230)&quot;/&gt;
    &lt;wire from=&quot;(810,280)&quot; to=&quot;(830,280)&quot;/&gt;
    &lt;wire from=&quot;(620,140)&quot; to=&quot;(620,180)&quot;/&gt;
    &lt;wire from=&quot;(680,280)&quot; to=&quot;(680,320)&quot;/&gt;
    &lt;wire from=&quot;(220,60)&quot; to=&quot;(220,100)&quot;/&gt;
    &lt;wire from=&quot;(290,290)&quot; to=&quot;(290,330)&quot;/&gt;
    &lt;wire from=&quot;(360,120)&quot; to=&quot;(360,160)&quot;/&gt;
    &lt;wire from=&quot;(210,400)&quot; to=&quot;(230,400)&quot;/&gt;
    &lt;wire from=&quot;(430,150)&quot; to=&quot;(440,150)&quot;/&gt;
    &lt;wire from=&quot;(360,160)&quot; to=&quot;(370,160)&quot;/&gt;
    &lt;wire from=&quot;(220,100)&quot; to=&quot;(230,100)&quot;/&gt;
    &lt;wire from=&quot;(360,280)&quot; to=&quot;(360,340)&quot;/&gt;
    &lt;wire from=&quot;(520,120)&quot; to=&quot;(520,180)&quot;/&gt;
    &lt;wire from=&quot;(660,60)&quot; to=&quot;(670,60)&quot;/&gt;
    &lt;wire from=&quot;(680,320)&quot; to=&quot;(690,320)&quot;/&gt;
    &lt;wire from=&quot;(750,150)&quot; to=&quot;(760,150)&quot;/&gt;
    &lt;wire from=&quot;(750,70)&quot; to=&quot;(760,70)&quot;/&gt;
    &lt;wire from=&quot;(280,170)&quot; to=&quot;(330,170)&quot;/&gt;
    &lt;wire from=&quot;(140,110)&quot; to=&quot;(190,110)&quot;/&gt;
    &lt;wire from=&quot;(620,100)&quot; to=&quot;(680,100)&quot;/&gt;
    &lt;wire from=&quot;(170,70)&quot; to=&quot;(170,280)&quot;/&gt;
    &lt;wire from=&quot;(440,90)&quot; to=&quot;(440,110)&quot;/&gt;
    &lt;wire from=&quot;(500,230)&quot; to=&quot;(500,250)&quot;/&gt;
    &lt;wire from=&quot;(210,100)&quot; to=&quot;(210,120)&quot;/&gt;
    &lt;wire from=&quot;(520,40)&quot; to=&quot;(520,120)&quot;/&gt;
    &lt;wire from=&quot;(330,140)&quot; to=&quot;(430,140)&quot;/&gt;
    &lt;wire from=&quot;(330,140)&quot; to=&quot;(330,170)&quot;/&gt;
    &lt;wire from=&quot;(830,240)&quot; to=&quot;(830,280)&quot;/&gt;
    &lt;wire from=&quot;(500,250)&quot; to=&quot;(530,250)&quot;/&gt;
    &lt;wire from=&quot;(190,110)&quot; to=&quot;(190,210)&quot;/&gt;
    &lt;wire from=&quot;(360,40)&quot; to=&quot;(380,40)&quot;/&gt;
    &lt;wire from=&quot;(360,120)&quot; to=&quot;(380,120)&quot;/&gt;
    &lt;wire from=&quot;(520,40)&quot; to=&quot;(540,40)&quot;/&gt;
    &lt;wire from=&quot;(520,120)&quot; to=&quot;(540,120)&quot;/&gt;
    &lt;wire from=&quot;(830,60)&quot; to=&quot;(830,220)&quot;/&gt;
    &lt;wire from=&quot;(440,370)&quot; to=&quot;(450,370)&quot;/&gt;
    &lt;wire from=&quot;(440,50)&quot; to=&quot;(450,50)&quot;/&gt;
    &lt;wire from=&quot;(510,210)&quot; to=&quot;(840,210)&quot;/&gt;
    &lt;wire from=&quot;(140,50)&quot; to=&quot;(220,50)&quot;/&gt;
    &lt;wire from=&quot;(350,280)&quot; to=&quot;(360,280)&quot;/&gt;
    &lt;wire from=&quot;(370,60)&quot; to=&quot;(380,60)&quot;/&gt;
    &lt;wire from=&quot;(530,100)&quot; to=&quot;(530,160)&quot;/&gt;
    &lt;wire from=&quot;(740,110)&quot; to=&quot;(750,110)&quot;/&gt;
    &lt;wire from=&quot;(530,60)&quot; to=&quot;(540,60)&quot;/&gt;
    &lt;wire from=&quot;(210,340)&quot; to=&quot;(210,400)&quot;/&gt;
    &lt;wire from=&quot;(600,50)&quot; to=&quot;(610,50)&quot;/&gt;
    &lt;wire from=&quot;(600,290)&quot; to=&quot;(610,290)&quot;/&gt;
    &lt;wire from=&quot;(320,100)&quot; to=&quot;(370,100)&quot;/&gt;
    &lt;wire from=&quot;(320,180)&quot; to=&quot;(370,180)&quot;/&gt;
    &lt;wire from=&quot;(70,90)&quot; to=&quot;(120,90)&quot;/&gt;
    &lt;wire from=&quot;(210,260)&quot; to=&quot;(210,340)&quot;/&gt;
    &lt;wire from=&quot;(340,360)&quot; to=&quot;(440,360)&quot;/&gt;
    &lt;wire from=&quot;(340,360)&quot; to=&quot;(340,390)&quot;/&gt;
    &lt;wire from=&quot;(810,60)&quot; to=&quot;(830,60)&quot;/&gt;
    &lt;wire from=&quot;(680,60)&quot; to=&quot;(680,100)&quot;/&gt;
    &lt;wire from=&quot;(750,290)&quot; to=&quot;(750,330)&quot;/&gt;
    &lt;wire from=&quot;(670,160)&quot; to=&quot;(690,160)&quot;/&gt;
    &lt;wire from=&quot;(290,70)&quot; to=&quot;(290,110)&quot;/&gt;
    &lt;wire from=&quot;(320,100)&quot; to=&quot;(320,140)&quot;/&gt;
    &lt;wire from=&quot;(160,130)&quot; to=&quot;(160,240)&quot;/&gt;
    &lt;wire from=&quot;(210,260)&quot; to=&quot;(230,260)&quot;/&gt;
    &lt;wire from=&quot;(210,340)&quot; to=&quot;(230,340)&quot;/&gt;
    &lt;wire from=&quot;(210,180)&quot; to=&quot;(230,180)&quot;/&gt;
    &lt;wire from=&quot;(430,330)&quot; to=&quot;(440,330)&quot;/&gt;
    &lt;wire from=&quot;(290,270)&quot; to=&quot;(300,270)&quot;/&gt;
    &lt;wire from=&quot;(140,120)&quot; to=&quot;(150,120)&quot;/&gt;
    &lt;wire from=&quot;(620,320)&quot; to=&quot;(620,380)&quot;/&gt;
    &lt;wire from=&quot;(220,280)&quot; to=&quot;(230,280)&quot;/&gt;
    &lt;wire from=&quot;(360,60)&quot; to=&quot;(360,120)&quot;/&gt;
    &lt;wire from=&quot;(860,200)&quot; to=&quot;(870,200)&quot;/&gt;
    &lt;wire from=&quot;(680,100)&quot; to=&quot;(690,100)&quot;/&gt;
    &lt;wire from=&quot;(220,320)&quot; to=&quot;(220,380)&quot;/&gt;
    &lt;wire from=&quot;(590,330)&quot; to=&quot;(600,330)&quot;/&gt;
    &lt;wire from=&quot;(220,50)&quot; to=&quot;(220,60)&quot;/&gt;
    &lt;wire from=&quot;(330,400)&quot; to=&quot;(380,400)&quot;/&gt;
    &lt;wire from=&quot;(150,120)&quot; to=&quot;(150,260)&quot;/&gt;
    &lt;wire from=&quot;(490,240)&quot; to=&quot;(490,260)&quot;/&gt;
    &lt;wire from=&quot;(640,140)&quot; to=&quot;(750,140)&quot;/&gt;
    &lt;wire from=&quot;(670,260)&quot; to=&quot;(670,280)&quot;/&gt;
    &lt;wire from=&quot;(530,280)&quot; to=&quot;(530,320)&quot;/&gt;
    &lt;wire from=&quot;(140,70)&quot; to=&quot;(170,70)&quot;/&gt;
    &lt;wire from=&quot;(490,260)&quot; to=&quot;(520,260)&quot;/&gt;
    &lt;wire from=&quot;(490,180)&quot; to=&quot;(520,180)&quot;/&gt;
    &lt;wire from=&quot;(500,190)&quot; to=&quot;(530,190)&quot;/&gt;
    &lt;wire from=&quot;(360,380)&quot; to=&quot;(380,380)&quot;/&gt;
    &lt;wire from=&quot;(330,320)&quot; to=&quot;(330,360)&quot;/&gt;
    &lt;wire from=&quot;(370,280)&quot; to=&quot;(370,320)&quot;/&gt;
    &lt;wire from=&quot;(440,310)&quot; to=&quot;(450,310)&quot;/&gt;
    &lt;wire from=&quot;(510,230)&quot; to=&quot;(840,230)&quot;/&gt;
    &lt;wire from=&quot;(500,290)&quot; to=&quot;(510,290)&quot;/&gt;
    &lt;wire from=&quot;(370,320)&quot; to=&quot;(380,320)&quot;/&gt;
    &lt;wire from=&quot;(350,60)&quot; to=&quot;(360,60)&quot;/&gt;
    &lt;wire from=&quot;(110,140)&quot; to=&quot;(120,140)&quot;/&gt;
    &lt;wire from=&quot;(830,220)&quot; to=&quot;(840,220)&quot;/&gt;
    &lt;wire from=&quot;(530,160)&quot; to=&quot;(540,160)&quot;/&gt;
    &lt;wire from=&quot;(530,320)&quot; to=&quot;(540,320)&quot;/&gt;
    &lt;wire from=&quot;(600,70)&quot; to=&quot;(610,70)&quot;/&gt;
    &lt;wire from=&quot;(210,40)&quot; to=&quot;(210,100)&quot;/&gt;
    &lt;wire from=&quot;(210,120)&quot; to=&quot;(210,180)&quot;/&gt;
    &lt;wire from=&quot;(280,390)&quot; to=&quot;(340,390)&quot;/&gt;
    &lt;wire from=&quot;(180,230)&quot; to=&quot;(500,230)&quot;/&gt;
    &lt;wire from=&quot;(150,260)&quot; to=&quot;(210,260)&quot;/&gt;
    &lt;wire from=&quot;(200,220)&quot; to=&quot;(200,360)&quot;/&gt;
    &lt;wire from=&quot;(200,60)&quot; to=&quot;(200,200)&quot;/&gt;
    &lt;wire from=&quot;(500,140)&quot; to=&quot;(500,160)&quot;/&gt;
    &lt;wire from=&quot;(530,250)&quot; to=&quot;(530,280)&quot;/&gt;
    &lt;wire from=&quot;(200,200)&quot; to=&quot;(490,200)&quot;/&gt;
    &lt;wire from=&quot;(620,100)&quot; to=&quot;(620,140)&quot;/&gt;
    &lt;wire from=&quot;(750,70)&quot; to=&quot;(750,110)&quot;/&gt;
    &lt;wire from=&quot;(670,260)&quot; to=&quot;(690,260)&quot;/&gt;
    &lt;wire from=&quot;(670,340)&quot; to=&quot;(690,340)&quot;/&gt;
    &lt;wire from=&quot;(740,170)&quot; to=&quot;(760,170)&quot;/&gt;
    &lt;wire from=&quot;(420,170)&quot; to=&quot;(440,170)&quot;/&gt;
    &lt;wire from=&quot;(140,130)&quot; to=&quot;(160,130)&quot;/&gt;
    &lt;wire from=&quot;(210,40)&quot; to=&quot;(230,40)&quot;/&gt;
    &lt;wire from=&quot;(210,120)&quot; to=&quot;(230,120)&quot;/&gt;
    &lt;wire from=&quot;(430,110)&quot; to=&quot;(440,110)&quot;/&gt;
    &lt;wire from=&quot;(290,290)&quot; to=&quot;(300,290)&quot;/&gt;
    &lt;wire from=&quot;(290,50)&quot; to=&quot;(300,50)&quot;/&gt;
    &lt;wire from=&quot;(220,380)&quot; to=&quot;(230,380)&quot;/&gt;
    &lt;wire from=&quot;(220,60)&quot; to=&quot;(230,60)&quot;/&gt;
    &lt;wire from=&quot;(510,230)&quot; to=&quot;(510,290)&quot;/&gt;
    &lt;wire from=&quot;(680,280)&quot; to=&quot;(690,280)&quot;/&gt;
    &lt;wire from=&quot;(750,270)&quot; to=&quot;(760,270)&quot;/&gt;
    &lt;wire from=&quot;(590,110)&quot; to=&quot;(600,110)&quot;/&gt;
    &lt;wire from=&quot;(220,100)&quot; to=&quot;(220,160)&quot;/&gt;
    &lt;wire from=&quot;(140,60)&quot; to=&quot;(200,60)&quot;/&gt;
    &lt;wire from=&quot;(490,180)&quot; to=&quot;(490,200)&quot;/&gt;
    &lt;wire from=&quot;(500,190)&quot; to=&quot;(500,210)&quot;/&gt;
    &lt;wire from=&quot;(140,80)&quot; to=&quot;(180,80)&quot;/&gt;
    &lt;wire from=&quot;(670,40)&quot; to=&quot;(670,60)&quot;/&gt;
    &lt;wire from=&quot;(530,60)&quot; to=&quot;(530,100)&quot;/&gt;
    &lt;wire from=&quot;(600,290)&quot; to=&quot;(600,330)&quot;/&gt;
    &lt;wire from=&quot;(670,120)&quot; to=&quot;(670,160)&quot;/&gt;
    &lt;wire from=&quot;(430,390)&quot; to=&quot;(450,390)&quot;/&gt;
    &lt;wire from=&quot;(370,60)&quot; to=&quot;(370,100)&quot;/&gt;
    &lt;wire from=&quot;(440,90)&quot; to=&quot;(450,90)&quot;/&gt;
    &lt;wire from=&quot;(500,70)&quot; to=&quot;(510,70)&quot;/&gt;
    &lt;wire from=&quot;(280,330)&quot; to=&quot;(290,330)&quot;/&gt;
    &lt;wire from=&quot;(620,180)&quot; to=&quot;(690,180)&quot;/&gt;
    &lt;wire from=&quot;(370,100)&quot; to=&quot;(380,100)&quot;/&gt;
    &lt;wire from=&quot;(670,280)&quot; to=&quot;(670,340)&quot;/&gt;
    &lt;wire from=&quot;(140,100)&quot; to=&quot;(210,100)&quot;/&gt;
    &lt;wire from=&quot;(830,240)&quot; to=&quot;(840,240)&quot;/&gt;
    &lt;wire from=&quot;(530,100)&quot; to=&quot;(540,100)&quot;/&gt;
    &lt;wire from=&quot;(590,170)&quot; to=&quot;(640,170)&quot;/&gt;
    &lt;wire from=&quot;(510,70)&quot; to=&quot;(510,210)&quot;/&gt;
    &lt;wire from=&quot;(500,380)&quot; to=&quot;(620,380)&quot;/&gt;
    &lt;wire from=&quot;(500,140)&quot; to=&quot;(620,140)&quot;/&gt;
    &lt;wire from=&quot;(360,260)&quot; to=&quot;(360,280)&quot;/&gt;
    &lt;wire from=&quot;(640,140)&quot; to=&quot;(640,170)&quot;/&gt;
    &lt;wire from=&quot;(200,220)&quot; to=&quot;(820,220)&quot;/&gt;
    &lt;wire from=&quot;(330,320)&quot; to=&quot;(370,320)&quot;/&gt;
    &lt;wire from=&quot;(670,40)&quot; to=&quot;(690,40)&quot;/&gt;
    &lt;wire from=&quot;(670,120)&quot; to=&quot;(690,120)&quot;/&gt;
    &lt;wire from=&quot;(220,280)&quot; to=&quot;(220,320)&quot;/&gt;
    &lt;wire from=&quot;(320,140)&quot; to=&quot;(320,180)&quot;/&gt;
    &lt;wire from=&quot;(360,340)&quot; to=&quot;(360,380)&quot;/&gt;
    &lt;wire from=&quot;(820,160)&quot; to=&quot;(820,220)&quot;/&gt;
    &lt;wire from=&quot;(290,70)&quot; to=&quot;(300,70)&quot;/&gt;
    &lt;wire from=&quot;(220,320)&quot; to=&quot;(230,320)&quot;/&gt;
    &lt;wire from=&quot;(220,160)&quot; to=&quot;(230,160)&quot;/&gt;
    &lt;wire from=&quot;(660,280)&quot; to=&quot;(670,280)&quot;/&gt;
    &lt;wire from=&quot;(680,60)&quot; to=&quot;(690,60)&quot;/&gt;
    &lt;wire from=&quot;(750,50)&quot; to=&quot;(760,50)&quot;/&gt;
    &lt;wire from=&quot;(750,290)&quot; to=&quot;(760,290)&quot;/&gt;
    &lt;wire from=&quot;(200,360)&quot; to=&quot;(330,360)&quot;/&gt;
    &lt;wire from=&quot;(750,140)&quot; to=&quot;(750,150)&quot;/&gt;
    &lt;wire from=&quot;(430,140)&quot; to=&quot;(430,150)&quot;/&gt;
    &lt;wire from=&quot;(170,280)&quot; to=&quot;(220,280)&quot;/&gt;
    &lt;wire from=&quot;(620,320)&quot; to=&quot;(680,320)&quot;/&gt;
    &lt;wire from=&quot;(440,310)&quot; to=&quot;(440,330)&quot;/&gt;
    &lt;wire from=&quot;(530,160)&quot; to=&quot;(530,190)&quot;/&gt;
    &lt;wire from=&quot;(520,260)&quot; to=&quot;(520,340)&quot;/&gt;
    &lt;wire from=&quot;(600,70)&quot; to=&quot;(600,110)&quot;/&gt;
    &lt;wire from=&quot;(520,340)&quot; to=&quot;(540,340)&quot;/&gt;
    &lt;wire from=&quot;(520,260)&quot; to=&quot;(540,260)&quot;/&gt;
    &lt;wire from=&quot;(360,340)&quot; to=&quot;(380,340)&quot;/&gt;
    &lt;wire from=&quot;(360,260)&quot; to=&quot;(380,260)&quot;/&gt;
    &lt;wire from=&quot;(520,180)&quot; to=&quot;(540,180)&quot;/&gt;
    &lt;wire from=&quot;(330,360)&quot; to=&quot;(330,400)&quot;/&gt;
    &lt;wire from=&quot;(440,270)&quot; to=&quot;(450,270)&quot;/&gt;
    &lt;wire from=&quot;(490,160)&quot; to=&quot;(500,160)&quot;/&gt;
    &lt;wire from=&quot;(280,110)&quot; to=&quot;(290,110)&quot;/&gt;
    &lt;wire from=&quot;(310,140)&quot; to=&quot;(320,140)&quot;/&gt;
    &lt;wire from=&quot;(370,280)&quot; to=&quot;(380,280)&quot;/&gt;
    &lt;wire from=&quot;(160,240)&quot; to=&quot;(490,240)&quot;/&gt;
    &lt;wire from=&quot;(670,60)&quot; to=&quot;(670,120)&quot;/&gt;
    &lt;wire from=&quot;(70,140)&quot; to=&quot;(80,140)&quot;/&gt;
    &lt;wire from=&quot;(810,160)&quot; to=&quot;(820,160)&quot;/&gt;
    &lt;wire from=&quot;(740,330)&quot; to=&quot;(750,330)&quot;/&gt;
    &lt;wire from=&quot;(530,280)&quot; to=&quot;(540,280)&quot;/&gt;
    &lt;wire from=&quot;(600,270)&quot; to=&quot;(610,270)&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(280,390)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(430,390)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(280,330)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(440,270)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(660,60)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(750,50)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(350,280)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(490,160)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(810,160)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(120,90)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(660,280)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(500,380)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(280,170)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(430,330)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(860,200)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(440,50)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(70,90)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(310,140)&quot; name=&quot;Constant&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(70,140)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(120,140)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(810,280)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(290,270)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(280,110)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(500,70)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(590,110)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(600,270)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(590,170)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(110,140)&quot; name=&quot;NOT Gate&quot;&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(810,60)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(290,50)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(500,290)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(740,110)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(350,60)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(870,200)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;output&quot; val=&quot;true&quot;/&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;east&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(750,270)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(430,110)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(740,170)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(590,330)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(420,170)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(740,330)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(600,50)&quot; name=&quot;NAND Gate&quot;/&gt;
  &lt;/circuit&gt;
&lt;/project&gt;</code></pre>
</blockquote>
<h2>Arithmetic logic unit</h2>
<img src="/img/CC_BY-SA_4.0/y.st./coursework/CS1104/4-bit_arithmetic_logic_unit.png" alt="4-bit arithmetic logic unit" class="framed-centred-image" width="1071" height="656"/>
<blockquote>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
&lt;project source=&quot;2.7.1&quot; version=&quot;1.0&quot;&gt;
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
&lt;lib desc=&quot;#Wiring&quot; name=&quot;0&quot;/&gt;
  &lt;lib desc=&quot;#Gates&quot; name=&quot;1&quot;/&gt;
  &lt;lib desc=&quot;#Plexers&quot; name=&quot;2&quot;/&gt;
  &lt;lib desc=&quot;#Arithmetic&quot; name=&quot;3&quot;/&gt;
  &lt;lib desc=&quot;#Memory&quot; name=&quot;4&quot;/&gt;
  &lt;lib desc=&quot;#I/O&quot; name=&quot;5&quot;/&gt;
  &lt;lib desc=&quot;#Base&quot; name=&quot;6&quot;&gt;
    &lt;tool name=&quot;Text Tool&quot;&gt;
      &lt;a name=&quot;text&quot; val=&quot;&quot;/&gt;
      &lt;a name=&quot;font&quot; val=&quot;SansSerif plain 12&quot;/&gt;
      &lt;a name=&quot;halign&quot; val=&quot;center&quot;/&gt;
      &lt;a name=&quot;valign&quot; val=&quot;base&quot;/&gt;
    &lt;/tool&gt;
  &lt;/lib&gt;
  &lt;main name=&quot;main&quot;/&gt;
  &lt;options&gt;
    &lt;a name=&quot;gateUndefined&quot; val=&quot;ignore&quot;/&gt;
    &lt;a name=&quot;simlimit&quot; val=&quot;1000&quot;/&gt;
    &lt;a name=&quot;simrand&quot; val=&quot;0&quot;/&gt;
  &lt;/options&gt;
  &lt;mappings&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Button2&quot; name=&quot;Menu Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Button3&quot; name=&quot;Menu Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; map=&quot;Ctrl Button1&quot; name=&quot;Menu Tool&quot;/&gt;
  &lt;/mappings&gt;
  &lt;toolbar&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Poke Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Edit Tool&quot;/&gt;
    &lt;tool lib=&quot;6&quot; name=&quot;Text Tool&quot;&gt;
      &lt;a name=&quot;text&quot; val=&quot;&quot;/&gt;
      &lt;a name=&quot;font&quot; val=&quot;SansSerif plain 12&quot;/&gt;
      &lt;a name=&quot;halign&quot; val=&quot;center&quot;/&gt;
      &lt;a name=&quot;valign&quot; val=&quot;base&quot;/&gt;
    &lt;/tool&gt;
    &lt;sep/&gt;
    &lt;tool lib=&quot;0&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
    &lt;/tool&gt;
    &lt;tool lib=&quot;0&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;output&quot; val=&quot;true&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;east&quot;/&gt;
    &lt;/tool&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;NOT Gate&quot;/&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;tool lib=&quot;1&quot; name=&quot;OR Gate&quot;/&gt;
  &lt;/toolbar&gt;
  &lt;circuit name=&quot;main&quot;&gt;
    &lt;a name=&quot;circuit&quot; val=&quot;main&quot;/&gt;
    &lt;a name=&quot;clabel&quot; val=&quot;&quot;/&gt;
    &lt;a name=&quot;clabelup&quot; val=&quot;east&quot;/&gt;
    &lt;a name=&quot;clabelfont&quot; val=&quot;SansSerif plain 12&quot;/&gt;
    &lt;wire from=&quot;(680,200)&quot; to=&quot;(680,210)&quot;/&gt;
    &lt;wire from=&quot;(1260,230)&quot; to=&quot;(1260,440)&quot;/&gt;
    &lt;wire from=&quot;(750,190)&quot; to=&quot;(800,190)&quot;/&gt;
    &lt;wire from=&quot;(970,650)&quot; to=&quot;(970,660)&quot;/&gt;
    &lt;wire from=&quot;(660,240)&quot; to=&quot;(660,380)&quot;/&gt;
    &lt;wire from=&quot;(1000,550)&quot; to=&quot;(1000,620)&quot;/&gt;
    &lt;wire from=&quot;(830,540)&quot; to=&quot;(830,610)&quot;/&gt;
    &lt;wire from=&quot;(660,530)&quot; to=&quot;(660,600)&quot;/&gt;
    &lt;wire from=&quot;(750,340)&quot; to=&quot;(810,340)&quot;/&gt;
    &lt;wire from=&quot;(800,160)&quot; to=&quot;(900,160)&quot;/&gt;
    &lt;wire from=&quot;(800,160)&quot; to=&quot;(800,190)&quot;/&gt;
    &lt;wire from=&quot;(910,110)&quot; to=&quot;(910,130)&quot;/&gt;
    &lt;wire from=&quot;(290,610)&quot; to=&quot;(290,640)&quot;/&gt;
    &lt;wire from=&quot;(310,470)&quot; to=&quot;(310,500)&quot;/&gt;
    &lt;wire from=&quot;(470,180)&quot; to=&quot;(470,270)&quot;/&gt;
    &lt;wire from=&quot;(990,60)&quot; to=&quot;(990,140)&quot;/&gt;
    &lt;wire from=&quot;(830,140)&quot; to=&quot;(850,140)&quot;/&gt;
    &lt;wire from=&quot;(290,380)&quot; to=&quot;(290,610)&quot;/&gt;
    &lt;wire from=&quot;(990,140)&quot; to=&quot;(1010,140)&quot;/&gt;
    &lt;wire from=&quot;(250,140)&quot; to=&quot;(250,620)&quot;/&gt;
    &lt;wire from=&quot;(490,590)&quot; to=&quot;(520,590)&quot;/&gt;
    &lt;wire from=&quot;(650,280)&quot; to=&quot;(670,280)&quot;/&gt;
    &lt;wire from=&quot;(650,120)&quot; to=&quot;(670,120)&quot;/&gt;
    &lt;wire from=&quot;(1070,70)&quot; to=&quot;(1080,70)&quot;/&gt;
    &lt;wire from=&quot;(1090,570)&quot; to=&quot;(1100,570)&quot;/&gt;
    &lt;wire from=&quot;(980,230)&quot; to=&quot;(1260,230)&quot;/&gt;
    &lt;wire from=&quot;(240,260)&quot; to=&quot;(240,680)&quot;/&gt;
    &lt;wire from=&quot;(660,600)&quot; to=&quot;(690,600)&quot;/&gt;
    &lt;wire from=&quot;(460,250)&quot; to=&quot;(480,250)&quot;/&gt;
    &lt;wire from=&quot;(1000,620)&quot; to=&quot;(1030,620)&quot;/&gt;
    &lt;wire from=&quot;(830,610)&quot; to=&quot;(860,610)&quot;/&gt;
    &lt;wire from=&quot;(400,200)&quot; to=&quot;(410,200)&quot;/&gt;
    &lt;wire from=&quot;(920,560)&quot; to=&quot;(930,560)&quot;/&gt;
    &lt;wire from=&quot;(660,180)&quot; to=&quot;(660,230)&quot;/&gt;
    &lt;wire from=&quot;(1030,350)&quot; to=&quot;(1040,350)&quot;/&gt;
    &lt;wire from=&quot;(910,70)&quot; to=&quot;(920,70)&quot;/&gt;
    &lt;wire from=&quot;(870,350)&quot; to=&quot;(880,350)&quot;/&gt;
    &lt;wire from=&quot;(480,320)&quot; to=&quot;(480,380)&quot;/&gt;
    &lt;wire from=&quot;(750,550)&quot; to=&quot;(760,550)&quot;/&gt;
    &lt;wire from=&quot;(560,200)&quot; to=&quot;(570,200)&quot;/&gt;
    &lt;wire from=&quot;(580,540)&quot; to=&quot;(590,540)&quot;/&gt;
    &lt;wire from=&quot;(620,260)&quot; to=&quot;(630,260)&quot;/&gt;
    &lt;wire from=&quot;(610,250)&quot; to=&quot;(620,250)&quot;/&gt;
    &lt;wire from=&quot;(250,140)&quot; to=&quot;(630,140)&quot;/&gt;
    &lt;wire from=&quot;(790,200)&quot; to=&quot;(840,200)&quot;/&gt;
    &lt;wire from=&quot;(1110,280)&quot; to=&quot;(1110,300)&quot;/&gt;
    &lt;wire from=&quot;(320,160)&quot; to=&quot;(320,240)&quot;/&gt;
    &lt;wire from=&quot;(480,160)&quot; to=&quot;(480,240)&quot;/&gt;
    &lt;wire from=&quot;(480,290)&quot; to=&quot;(480,320)&quot;/&gt;
    &lt;wire from=&quot;(930,260)&quot; to=&quot;(930,280)&quot;/&gt;
    &lt;wire from=&quot;(660,690)&quot; to=&quot;(830,690)&quot;/&gt;
    &lt;wire from=&quot;(760,90)&quot; to=&quot;(760,130)&quot;/&gt;
    &lt;wire from=&quot;(370,510)&quot; to=&quot;(460,510)&quot;/&gt;
    &lt;wire from=&quot;(790,120)&quot; to=&quot;(790,160)&quot;/&gt;
    &lt;wire from=&quot;(810,300)&quot; to=&quot;(810,340)&quot;/&gt;
    &lt;wire from=&quot;(970,300)&quot; to=&quot;(970,340)&quot;/&gt;
    &lt;wire from=&quot;(1150,120)&quot; to=&quot;(1160,120)&quot;/&gt;
    &lt;wire from=&quot;(320,240)&quot; to=&quot;(340,240)&quot;/&gt;
    &lt;wire from=&quot;(480,240)&quot; to=&quot;(500,240)&quot;/&gt;
    &lt;wire from=&quot;(260,550)&quot; to=&quot;(260,590)&quot;/&gt;
    &lt;wire from=&quot;(280,410)&quot; to=&quot;(280,450)&quot;/&gt;
    &lt;wire from=&quot;(470,280)&quot; to=&quot;(470,320)&quot;/&gt;
    &lt;wire from=&quot;(400,330)&quot; to=&quot;(410,330)&quot;/&gt;
    &lt;wire from=&quot;(400,170)&quot; to=&quot;(410,170)&quot;/&gt;
    &lt;wire from=&quot;(880,330)&quot; to=&quot;(890,330)&quot;/&gt;
    &lt;wire from=&quot;(490,300)&quot; to=&quot;(490,360)&quot;/&gt;
    &lt;wire from=&quot;(560,330)&quot; to=&quot;(570,330)&quot;/&gt;
    &lt;wire from=&quot;(560,170)&quot; to=&quot;(570,170)&quot;/&gt;
    &lt;wire from=&quot;(980,650)&quot; to=&quot;(1160,650)&quot;/&gt;
    &lt;wire from=&quot;(360,620)&quot; to=&quot;(360,630)&quot;/&gt;
    &lt;wire from=&quot;(380,480)&quot; to=&quot;(380,490)&quot;/&gt;
    &lt;wire from=&quot;(970,270)&quot; to=&quot;(970,300)&quot;/&gt;
    &lt;wire from=&quot;(760,380)&quot; to=&quot;(760,410)&quot;/&gt;
    &lt;wire from=&quot;(290,70)&quot; to=&quot;(390,70)&quot;/&gt;
    &lt;wire from=&quot;(840,680)&quot; to=&quot;(1010,680)&quot;/&gt;
    &lt;wire from=&quot;(1190,290)&quot; to=&quot;(1200,290)&quot;/&gt;
    &lt;wire from=&quot;(440,480)&quot; to=&quot;(470,480)&quot;/&gt;
    &lt;wire from=&quot;(490,530)&quot; to=&quot;(520,530)&quot;/&gt;
    &lt;wire from=&quot;(1080,500)&quot; to=&quot;(1090,500)&quot;/&gt;
    &lt;wire from=&quot;(650,140)&quot; to=&quot;(650,250)&quot;/&gt;
    &lt;wire from=&quot;(630,160)&quot; to=&quot;(790,160)&quot;/&gt;
    &lt;wire from=&quot;(960,200)&quot; to=&quot;(990,200)&quot;/&gt;
    &lt;wire from=&quot;(970,210)&quot; to=&quot;(1000,210)&quot;/&gt;
    &lt;wire from=&quot;(840,620)&quot; to=&quot;(840,680)&quot;/&gt;
    &lt;wire from=&quot;(950,250)&quot; to=&quot;(950,310)&quot;/&gt;
    &lt;wire from=&quot;(680,140)&quot; to=&quot;(680,200)&quot;/&gt;
    &lt;wire from=&quot;(910,490)&quot; to=&quot;(920,490)&quot;/&gt;
    &lt;wire from=&quot;(320,100)&quot; to=&quot;(320,160)&quot;/&gt;
    &lt;wire from=&quot;(820,80)&quot; to=&quot;(830,80)&quot;/&gt;
    &lt;wire from=&quot;(1110,360)&quot; to=&quot;(1130,360)&quot;/&gt;
    &lt;wire from=&quot;(730,310)&quot; to=&quot;(740,310)&quot;/&gt;
    &lt;wire from=&quot;(740,480)&quot; to=&quot;(750,480)&quot;/&gt;
    &lt;wire from=&quot;(1010,630)&quot; to=&quot;(1010,680)&quot;/&gt;
    &lt;wire from=&quot;(570,470)&quot; to=&quot;(580,470)&quot;/&gt;
    &lt;wire from=&quot;(620,200)&quot; to=&quot;(630,200)&quot;/&gt;
    &lt;wire from=&quot;(930,600)&quot; to=&quot;(980,600)&quot;/&gt;
    &lt;wire from=&quot;(280,110)&quot; to=&quot;(660,110)&quot;/&gt;
    &lt;wire from=&quot;(1000,620)&quot; to=&quot;(1000,690)&quot;/&gt;
    &lt;wire from=&quot;(670,610)&quot; to=&quot;(670,680)&quot;/&gt;
    &lt;wire from=&quot;(660,600)&quot; to=&quot;(660,690)&quot;/&gt;
    &lt;wire from=&quot;(420,650)&quot; to=&quot;(420,670)&quot;/&gt;
    &lt;wire from=&quot;(500,600)&quot; to=&quot;(500,680)&quot;/&gt;
    &lt;wire from=&quot;(1210,160)&quot; to=&quot;(1210,170)&quot;/&gt;
    &lt;wire from=&quot;(950,250)&quot; to=&quot;(1250,250)&quot;/&gt;
    &lt;wire from=&quot;(830,610)&quot; to=&quot;(830,690)&quot;/&gt;
    &lt;wire from=&quot;(450,550)&quot; to=&quot;(450,640)&quot;/&gt;
    &lt;wire from=&quot;(750,340)&quot; to=&quot;(750,380)&quot;/&gt;
    &lt;wire from=&quot;(490,590)&quot; to=&quot;(490,690)&quot;/&gt;
    &lt;wire from=&quot;(640,130)&quot; to=&quot;(640,300)&quot;/&gt;
    &lt;wire from=&quot;(300,280)&quot; to=&quot;(460,280)&quot;/&gt;
    &lt;wire from=&quot;(1270,180)&quot; to=&quot;(1280,180)&quot;/&gt;
    &lt;wire from=&quot;(680,60)&quot; to=&quot;(700,60)&quot;/&gt;
    &lt;wire from=&quot;(1060,130)&quot; to=&quot;(1070,130)&quot;/&gt;
    &lt;wire from=&quot;(820,650)&quot; to=&quot;(970,650)&quot;/&gt;
    &lt;wire from=&quot;(1040,310)&quot; to=&quot;(1040,350)&quot;/&gt;
    &lt;wire from=&quot;(650,630)&quot; to=&quot;(810,630)&quot;/&gt;
    &lt;wire from=&quot;(500,520)&quot; to=&quot;(520,520)&quot;/&gt;
    &lt;wire from=&quot;(450,640)&quot; to=&quot;(790,640)&quot;/&gt;
    &lt;wire from=&quot;(390,420)&quot; to=&quot;(400,420)&quot;/&gt;
    &lt;wire from=&quot;(490,360)&quot; to=&quot;(500,360)&quot;/&gt;
    &lt;wire from=&quot;(290,640)&quot; to=&quot;(300,640)&quot;/&gt;
    &lt;wire from=&quot;(310,500)&quot; to=&quot;(320,500)&quot;/&gt;
    &lt;wire from=&quot;(590,50)&quot; to=&quot;(660,50)&quot;/&gt;
    &lt;wire from=&quot;(1160,530)&quot; to=&quot;(1190,530)&quot;/&gt;
    &lt;wire from=&quot;(370,560)&quot; to=&quot;(380,560)&quot;/&gt;
    &lt;wire from=&quot;(330,360)&quot; to=&quot;(340,360)&quot;/&gt;
    &lt;wire from=&quot;(640,70)&quot; to=&quot;(640,130)&quot;/&gt;
    &lt;wire from=&quot;(690,120)&quot; to=&quot;(690,180)&quot;/&gt;
    &lt;wire from=&quot;(1290,300)&quot; to=&quot;(1290,470)&quot;/&gt;
    &lt;wire from=&quot;(900,130)&quot; to=&quot;(910,130)&quot;/&gt;
    &lt;wire from=&quot;(690,80)&quot; to=&quot;(700,80)&quot;/&gt;
    &lt;wire from=&quot;(320,100)&quot; to=&quot;(390,100)&quot;/&gt;
    &lt;wire from=&quot;(230,690)&quot; to=&quot;(490,690)&quot;/&gt;
    &lt;wire from=&quot;(1140,60)&quot; to=&quot;(1140,80)&quot;/&gt;
    &lt;wire from=&quot;(590,70)&quot; to=&quot;(640,70)&quot;/&gt;
    &lt;wire from=&quot;(450,410)&quot; to=&quot;(500,410)&quot;/&gt;
    &lt;wire from=&quot;(590,60)&quot; to=&quot;(650,60)&quot;/&gt;
    &lt;wire from=&quot;(590,80)&quot; to=&quot;(630,80)&quot;/&gt;
    &lt;wire from=&quot;(650,250)&quot; to=&quot;(940,250)&quot;/&gt;
    &lt;wire from=&quot;(960,200)&quot; to=&quot;(960,220)&quot;/&gt;
    &lt;wire from=&quot;(970,210)&quot; to=&quot;(970,230)&quot;/&gt;
    &lt;wire from=&quot;(830,500)&quot; to=&quot;(850,500)&quot;/&gt;
    &lt;wire from=&quot;(650,260)&quot; to=&quot;(930,260)&quot;/&gt;
    &lt;wire from=&quot;(1000,510)&quot; to=&quot;(1020,510)&quot;/&gt;
    &lt;wire from=&quot;(840,80)&quot; to=&quot;(840,120)&quot;/&gt;
    &lt;wire from=&quot;(800,360)&quot; to=&quot;(800,400)&quot;/&gt;
    &lt;wire from=&quot;(630,140)&quot; to=&quot;(650,140)&quot;/&gt;
    &lt;wire from=&quot;(1100,300)&quot; to=&quot;(1110,300)&quot;/&gt;
    &lt;wire from=&quot;(660,490)&quot; to=&quot;(680,490)&quot;/&gt;
    &lt;wire from=&quot;(1000,80)&quot; to=&quot;(1000,120)&quot;/&gt;
    &lt;wire from=&quot;(500,410)&quot; to=&quot;(500,520)&quot;/&gt;
    &lt;wire from=&quot;(1090,200)&quot; to=&quot;(1160,200)&quot;/&gt;
    &lt;wire from=&quot;(640,300)&quot; to=&quot;(670,300)&quot;/&gt;
    &lt;wire from=&quot;(490,480)&quot; to=&quot;(510,480)&quot;/&gt;
    &lt;wire from=&quot;(460,290)&quot; to=&quot;(480,290)&quot;/&gt;
    &lt;wire from=&quot;(470,270)&quot; to=&quot;(620,270)&quot;/&gt;
    &lt;wire from=&quot;(310,270)&quot; to=&quot;(460,270)&quot;/&gt;
    &lt;wire from=&quot;(840,560)&quot; to=&quot;(840,620)&quot;/&gt;
    &lt;wire from=&quot;(390,230)&quot; to=&quot;(400,230)&quot;/&gt;
    &lt;wire from=&quot;(310,90)&quot; to=&quot;(310,270)&quot;/&gt;
    &lt;wire from=&quot;(1010,570)&quot; to=&quot;(1010,630)&quot;/&gt;
    &lt;wire from=&quot;(360,580)&quot; to=&quot;(440,580)&quot;/&gt;
    &lt;wire from=&quot;(670,550)&quot; to=&quot;(670,610)&quot;/&gt;
    &lt;wire from=&quot;(910,110)&quot; to=&quot;(920,110)&quot;/&gt;
    &lt;wire from=&quot;(490,530)&quot; to=&quot;(490,590)&quot;/&gt;
    &lt;wire from=&quot;(500,540)&quot; to=&quot;(500,600)&quot;/&gt;
    &lt;wire from=&quot;(550,230)&quot; to=&quot;(560,230)&quot;/&gt;
    &lt;wire from=&quot;(980,90)&quot; to=&quot;(980,230)&quot;/&gt;
    &lt;wire from=&quot;(970,160)&quot; to=&quot;(1090,160)&quot;/&gt;
    &lt;wire from=&quot;(250,660)&quot; to=&quot;(300,660)&quot;/&gt;
    &lt;wire from=&quot;(270,520)&quot; to=&quot;(320,520)&quot;/&gt;
    &lt;wire from=&quot;(290,380)&quot; to=&quot;(340,380)&quot;/&gt;
    &lt;wire from=&quot;(430,660)&quot; to=&quot;(930,660)&quot;/&gt;
    &lt;wire from=&quot;(1110,160)&quot; to=&quot;(1210,160)&quot;/&gt;
    &lt;wire from=&quot;(300,80)&quot; to=&quot;(300,280)&quot;/&gt;
    &lt;wire from=&quot;(1110,160)&quot; to=&quot;(1110,190)&quot;/&gt;
    &lt;wire from=&quot;(1270,250)&quot; to=&quot;(1270,450)&quot;/&gt;
    &lt;wire from=&quot;(1280,260)&quot; to=&quot;(1280,460)&quot;/&gt;
    &lt;wire from=&quot;(1060,190)&quot; to=&quot;(1110,190)&quot;/&gt;
    &lt;wire from=&quot;(480,580)&quot; to=&quot;(520,580)&quot;/&gt;
    &lt;wire from=&quot;(800,280)&quot; to=&quot;(820,280)&quot;/&gt;
    &lt;wire from=&quot;(790,590)&quot; to=&quot;(810,590)&quot;/&gt;
    &lt;wire from=&quot;(260,130)&quot; to=&quot;(260,550)&quot;/&gt;
    &lt;wire from=&quot;(630,320)&quot; to=&quot;(630,360)&quot;/&gt;
    &lt;wire from=&quot;(630,160)&quot; to=&quot;(630,200)&quot;/&gt;
    &lt;wire from=&quot;(960,280)&quot; to=&quot;(980,280)&quot;/&gt;
    &lt;wire from=&quot;(820,540)&quot; to=&quot;(820,650)&quot;/&gt;
    &lt;wire from=&quot;(910,550)&quot; to=&quot;(930,550)&quot;/&gt;
    &lt;wire from=&quot;(290,70)&quot; to=&quot;(290,300)&quot;/&gt;
    &lt;wire from=&quot;(790,160)&quot; to=&quot;(790,200)&quot;/&gt;
    &lt;wire from=&quot;(1220,70)&quot; to=&quot;(1230,70)&quot;/&gt;
    &lt;wire from=&quot;(1180,350)&quot; to=&quot;(1190,350)&quot;/&gt;
    &lt;wire from=&quot;(570,530)&quot; to=&quot;(590,530)&quot;/&gt;
    &lt;wire from=&quot;(630,270)&quot; to=&quot;(650,270)&quot;/&gt;
    &lt;wire from=&quot;(240,260)&quot; to=&quot;(330,260)&quot;/&gt;
    &lt;wire from=&quot;(740,540)&quot; to=&quot;(760,540)&quot;/&gt;
    &lt;wire from=&quot;(430,550)&quot; to=&quot;(450,550)&quot;/&gt;
    &lt;wire from=&quot;(330,180)&quot; to=&quot;(330,220)&quot;/&gt;
    &lt;wire from=&quot;(650,530)&quot; to=&quot;(650,630)&quot;/&gt;
    &lt;wire from=&quot;(490,180)&quot; to=&quot;(490,220)&quot;/&gt;
    &lt;wire from=&quot;(490,300)&quot; to=&quot;(500,300)&quot;/&gt;
    &lt;wire from=&quot;(990,550)&quot; to=&quot;(990,670)&quot;/&gt;
    &lt;wire from=&quot;(970,660)&quot; to=&quot;(1170,660)&quot;/&gt;
    &lt;wire from=&quot;(970,300)&quot; to=&quot;(980,300)&quot;/&gt;
    &lt;wire from=&quot;(1290,80)&quot; to=&quot;(1290,250)&quot;/&gt;
    &lt;wire from=&quot;(810,300)&quot; to=&quot;(820,300)&quot;/&gt;
    &lt;wire from=&quot;(690,180)&quot; to=&quot;(700,180)&quot;/&gt;
    &lt;wire from=&quot;(1080,560)&quot; to=&quot;(1100,560)&quot;/&gt;
    &lt;wire from=&quot;(1140,140)&quot; to=&quot;(1160,140)&quot;/&gt;
    &lt;wire from=&quot;(760,90)&quot; to=&quot;(770,90)&quot;/&gt;
    &lt;wire from=&quot;(980,560)&quot; to=&quot;(1030,560)&quot;/&gt;
    &lt;wire from=&quot;(810,550)&quot; to=&quot;(860,550)&quot;/&gt;
    &lt;wire from=&quot;(980,640)&quot; to=&quot;(980,650)&quot;/&gt;
    &lt;wire from=&quot;(810,630)&quot; to=&quot;(810,640)&quot;/&gt;
    &lt;wire from=&quot;(630,210)&quot; to=&quot;(680,210)&quot;/&gt;
    &lt;wire from=&quot;(880,380)&quot; to=&quot;(880,390)&quot;/&gt;
    &lt;wire from=&quot;(640,540)&quot; to=&quot;(690,540)&quot;/&gt;
    &lt;wire from=&quot;(460,280)&quot; to=&quot;(460,290)&quot;/&gt;
    &lt;wire from=&quot;(240,120)&quot; to=&quot;(240,260)&quot;/&gt;
    &lt;wire from=&quot;(1000,180)&quot; to=&quot;(1000,210)&quot;/&gt;
    &lt;wire from=&quot;(490,690)&quot; to=&quot;(660,690)&quot;/&gt;
    &lt;wire from=&quot;(290,300)&quot; to=&quot;(290,380)&quot;/&gt;
    &lt;wire from=&quot;(260,550)&quot; to=&quot;(370,550)&quot;/&gt;
    &lt;wire from=&quot;(280,410)&quot; to=&quot;(390,410)&quot;/&gt;
    &lt;wire from=&quot;(630,290)&quot; to=&quot;(630,320)&quot;/&gt;
    &lt;wire from=&quot;(640,300)&quot; to=&quot;(640,340)&quot;/&gt;
    &lt;wire from=&quot;(1210,190)&quot; to=&quot;(1220,190)&quot;/&gt;
    &lt;wire from=&quot;(1090,550)&quot; to=&quot;(1100,550)&quot;/&gt;
    &lt;wire from=&quot;(940,610)&quot; to=&quot;(1030,610)&quot;/&gt;
    &lt;wire from=&quot;(1160,530)&quot; to=&quot;(1160,650)&quot;/&gt;
    &lt;wire from=&quot;(1170,540)&quot; to=&quot;(1170,660)&quot;/&gt;
    &lt;wire from=&quot;(1180,550)&quot; to=&quot;(1180,670)&quot;/&gt;
    &lt;wire from=&quot;(640,400)&quot; to=&quot;(670,400)&quot;/&gt;
    &lt;wire from=&quot;(800,300)&quot; to=&quot;(800,360)&quot;/&gt;
    &lt;wire from=&quot;(500,600)&quot; to=&quot;(510,600)&quot;/&gt;
    &lt;wire from=&quot;(290,610)&quot; to=&quot;(370,610)&quot;/&gt;
    &lt;wire from=&quot;(310,470)&quot; to=&quot;(390,470)&quot;/&gt;
    &lt;wire from=&quot;(1070,90)&quot; to=&quot;(1070,130)&quot;/&gt;
    &lt;wire from=&quot;(920,540)&quot; to=&quot;(930,540)&quot;/&gt;
    &lt;wire from=&quot;(1120,300)&quot; to=&quot;(1120,340)&quot;/&gt;
    &lt;wire from=&quot;(1010,630)&quot; to=&quot;(1020,630)&quot;/&gt;
    &lt;wire from=&quot;(840,620)&quot; to=&quot;(850,620)&quot;/&gt;
    &lt;wire from=&quot;(670,610)&quot; to=&quot;(680,610)&quot;/&gt;
    &lt;wire from=&quot;(750,530)&quot; to=&quot;(760,530)&quot;/&gt;
    &lt;wire from=&quot;(580,520)&quot; to=&quot;(590,520)&quot;/&gt;
    &lt;wire from=&quot;(440,580)&quot; to=&quot;(440,650)&quot;/&gt;
    &lt;wire from=&quot;(260,130)&quot; to=&quot;(640,130)&quot;/&gt;
    &lt;wire from=&quot;(650,280)&quot; to=&quot;(650,290)&quot;/&gt;
    &lt;wire from=&quot;(470,480)&quot; to=&quot;(470,620)&quot;/&gt;
    &lt;wire from=&quot;(490,260)&quot; to=&quot;(610,260)&quot;/&gt;
    &lt;wire from=&quot;(620,180)&quot; to=&quot;(660,180)&quot;/&gt;
    &lt;wire from=&quot;(460,250)&quot; to=&quot;(460,270)&quot;/&gt;
    &lt;wire from=&quot;(940,250)&quot; to=&quot;(940,270)&quot;/&gt;
    &lt;wire from=&quot;(670,680)&quot; to=&quot;(840,680)&quot;/&gt;
    &lt;wire from=&quot;(440,650)&quot; to=&quot;(800,650)&quot;/&gt;
    &lt;wire from=&quot;(630,580)&quot; to=&quot;(630,620)&quot;/&gt;
    &lt;wire from=&quot;(640,590)&quot; to=&quot;(640,630)&quot;/&gt;
    &lt;wire from=&quot;(750,380)&quot; to=&quot;(750,420)&quot;/&gt;
    &lt;wire from=&quot;(830,140)&quot; to=&quot;(830,180)&quot;/&gt;
    &lt;wire from=&quot;(1130,80)&quot; to=&quot;(1140,80)&quot;/&gt;
    &lt;wire from=&quot;(660,70)&quot; to=&quot;(690,70)&quot;/&gt;
    &lt;wire from=&quot;(480,380)&quot; to=&quot;(500,380)&quot;/&gt;
    &lt;wire from=&quot;(400,310)&quot; to=&quot;(410,310)&quot;/&gt;
    &lt;wire from=&quot;(1090,340)&quot; to=&quot;(1120,340)&quot;/&gt;
    &lt;wire from=&quot;(990,140)&quot; to=&quot;(990,200)&quot;/&gt;
    &lt;wire from=&quot;(1040,310)&quot; to=&quot;(1050,310)&quot;/&gt;
    &lt;wire from=&quot;(900,170)&quot; to=&quot;(910,170)&quot;/&gt;
    &lt;wire from=&quot;(690,120)&quot; to=&quot;(700,120)&quot;/&gt;
    &lt;wire from=&quot;(560,310)&quot; to=&quot;(570,310)&quot;/&gt;
    &lt;wire from=&quot;(350,650)&quot; to=&quot;(420,650)&quot;/&gt;
    &lt;wire from=&quot;(1250,300)&quot; to=&quot;(1290,300)&quot;/&gt;
    &lt;wire from=&quot;(480,240)&quot; to=&quot;(480,250)&quot;/&gt;
    &lt;wire from=&quot;(750,420)&quot; to=&quot;(810,420)&quot;/&gt;
    &lt;wire from=&quot;(720,410)&quot; to=&quot;(760,410)&quot;/&gt;
    &lt;wire from=&quot;(1090,120)&quot; to=&quot;(1150,120)&quot;/&gt;
    &lt;wire from=&quot;(510,440)&quot; to=&quot;(1260,440)&quot;/&gt;
    &lt;wire from=&quot;(300,540)&quot; to=&quot;(300,570)&quot;/&gt;
    &lt;wire from=&quot;(320,400)&quot; to=&quot;(320,430)&quot;/&gt;
    &lt;wire from=&quot;(830,60)&quot; to=&quot;(850,60)&quot;/&gt;
    &lt;wire from=&quot;(990,60)&quot; to=&quot;(1010,60)&quot;/&gt;
    &lt;wire from=&quot;(1210,130)&quot; to=&quot;(1220,130)&quot;/&gt;
    &lt;wire from=&quot;(470,620)&quot; to=&quot;(630,620)&quot;/&gt;
    &lt;wire from=&quot;(640,340)&quot; to=&quot;(670,340)&quot;/&gt;
    &lt;wire from=&quot;(420,620)&quot; to=&quot;(430,620)&quot;/&gt;
    &lt;wire from=&quot;(460,180)&quot; to=&quot;(470,180)&quot;/&gt;
    &lt;wire from=&quot;(1000,120)&quot; to=&quot;(1000,180)&quot;/&gt;
    &lt;wire from=&quot;(310,90)&quot; to=&quot;(390,90)&quot;/&gt;
    &lt;wire from=&quot;(230,110)&quot; to=&quot;(240,110)&quot;/&gt;
    &lt;wire from=&quot;(1000,80)&quot; to=&quot;(1010,80)&quot;/&gt;
    &lt;wire from=&quot;(840,80)&quot; to=&quot;(850,80)&quot;/&gt;
    &lt;wire from=&quot;(1190,310)&quot; to=&quot;(1190,350)&quot;/&gt;
    &lt;wire from=&quot;(730,290)&quot; to=&quot;(740,290)&quot;/&gt;
    &lt;wire from=&quot;(420,670)&quot; to=&quot;(940,670)&quot;/&gt;
    &lt;wire from=&quot;(790,120)&quot; to=&quot;(840,120)&quot;/&gt;
    &lt;wire from=&quot;(800,600)&quot; to=&quot;(860,600)&quot;/&gt;
    &lt;wire from=&quot;(1090,500)&quot; to=&quot;(1090,550)&quot;/&gt;
    &lt;wire from=&quot;(660,70)&quot; to=&quot;(660,110)&quot;/&gt;
    &lt;wire from=&quot;(1180,550)&quot; to=&quot;(1190,550)&quot;/&gt;
    &lt;wire from=&quot;(680,200)&quot; to=&quot;(700,200)&quot;/&gt;
    &lt;wire from=&quot;(320,160)&quot; to=&quot;(340,160)&quot;/&gt;
    &lt;wire from=&quot;(480,320)&quot; to=&quot;(500,320)&quot;/&gt;
    &lt;wire from=&quot;(480,160)&quot; to=&quot;(500,160)&quot;/&gt;
    &lt;wire from=&quot;(1090,340)&quot; to=&quot;(1090,400)&quot;/&gt;
    &lt;wire from=&quot;(930,280)&quot; to=&quot;(960,280)&quot;/&gt;
    &lt;wire from=&quot;(250,620)&quot; to=&quot;(250,660)&quot;/&gt;
    &lt;wire from=&quot;(270,480)&quot; to=&quot;(270,520)&quot;/&gt;
    &lt;wire from=&quot;(330,220)&quot; to=&quot;(330,260)&quot;/&gt;
    &lt;wire from=&quot;(490,220)&quot; to=&quot;(490,260)&quot;/&gt;
    &lt;wire from=&quot;(830,80)&quot; to=&quot;(830,140)&quot;/&gt;
    &lt;wire from=&quot;(490,180)&quot; to=&quot;(500,180)&quot;/&gt;
    &lt;wire from=&quot;(330,180)&quot; to=&quot;(340,180)&quot;/&gt;
    &lt;wire from=&quot;(630,360)&quot; to=&quot;(630,420)&quot;/&gt;
    &lt;wire from=&quot;(650,60)&quot; to=&quot;(650,120)&quot;/&gt;
    &lt;wire from=&quot;(940,310)&quot; to=&quot;(950,310)&quot;/&gt;
    &lt;wire from=&quot;(970,340)&quot; to=&quot;(980,340)&quot;/&gt;
    &lt;wire from=&quot;(240,680)&quot; to=&quot;(500,680)&quot;/&gt;
    &lt;wire from=&quot;(1150,80)&quot; to=&quot;(1150,120)&quot;/&gt;
    &lt;wire from=&quot;(750,480)&quot; to=&quot;(750,530)&quot;/&gt;
    &lt;wire from=&quot;(810,340)&quot; to=&quot;(820,340)&quot;/&gt;
    &lt;wire from=&quot;(580,470)&quot; to=&quot;(580,520)&quot;/&gt;
    &lt;wire from=&quot;(920,490)&quot; to=&quot;(920,540)&quot;/&gt;
    &lt;wire from=&quot;(1140,180)&quot; to=&quot;(1160,180)&quot;/&gt;
    &lt;wire from=&quot;(560,90)&quot; to=&quot;(570,90)&quot;/&gt;
    &lt;wire from=&quot;(690,70)&quot; to=&quot;(690,80)&quot;/&gt;
    &lt;wire from=&quot;(300,280)&quot; to=&quot;(300,540)&quot;/&gt;
    &lt;wire from=&quot;(390,410)&quot; to=&quot;(390,420)&quot;/&gt;
    &lt;wire from=&quot;(370,550)&quot; to=&quot;(370,560)&quot;/&gt;
    &lt;wire from=&quot;(630,420)&quot; to=&quot;(670,420)&quot;/&gt;
    &lt;wire from=&quot;(660,240)&quot; to=&quot;(1280,240)&quot;/&gt;
    &lt;wire from=&quot;(940,400)&quot; to=&quot;(1090,400)&quot;/&gt;
    &lt;wire from=&quot;(320,240)&quot; to=&quot;(320,400)&quot;/&gt;
    &lt;wire from=&quot;(330,260)&quot; to=&quot;(490,260)&quot;/&gt;
    &lt;wire from=&quot;(1070,90)&quot; to=&quot;(1080,90)&quot;/&gt;
    &lt;wire from=&quot;(1120,300)&quot; to=&quot;(1130,300)&quot;/&gt;
    &lt;wire from=&quot;(410,60)&quot; to=&quot;(430,60)&quot;/&gt;
    &lt;wire from=&quot;(270,120)&quot; to=&quot;(270,480)&quot;/&gt;
    &lt;wire from=&quot;(1280,180)&quot; to=&quot;(1280,240)&quot;/&gt;
    &lt;wire from=&quot;(390,370)&quot; to=&quot;(400,370)&quot;/&gt;
    &lt;wire from=&quot;(640,340)&quot; to=&quot;(640,400)&quot;/&gt;
    &lt;wire from=&quot;(680,450)&quot; to=&quot;(1270,450)&quot;/&gt;
    &lt;wire from=&quot;(1000,180)&quot; to=&quot;(1010,180)&quot;/&gt;
    &lt;wire from=&quot;(1110,280)&quot; to=&quot;(1130,280)&quot;/&gt;
    &lt;wire from=&quot;(550,370)&quot; to=&quot;(560,370)&quot;/&gt;
    &lt;wire from=&quot;(460,510)&quot; to=&quot;(460,630)&quot;/&gt;
    &lt;wire from=&quot;(260,90)&quot; to=&quot;(260,100)&quot;/&gt;
    &lt;wire from=&quot;(670,220)&quot; to=&quot;(960,220)&quot;/&gt;
    &lt;wire from=&quot;(970,160)&quot; to=&quot;(970,180)&quot;/&gt;
    &lt;wire from=&quot;(680,60)&quot; to=&quot;(680,140)&quot;/&gt;
    &lt;wire from=&quot;(890,190)&quot; to=&quot;(910,190)&quot;/&gt;
    &lt;wire from=&quot;(660,490)&quot; to=&quot;(660,530)&quot;/&gt;
    &lt;wire from=&quot;(830,500)&quot; to=&quot;(830,540)&quot;/&gt;
    &lt;wire from=&quot;(1210,520)&quot; to=&quot;(1220,520)&quot;/&gt;
    &lt;wire from=&quot;(680,140)&quot; to=&quot;(700,140)&quot;/&gt;
    &lt;wire from=&quot;(1000,510)&quot; to=&quot;(1000,550)&quot;/&gt;
    &lt;wire from=&quot;(1110,300)&quot; to=&quot;(1110,360)&quot;/&gt;
    &lt;wire from=&quot;(330,320)&quot; to=&quot;(330,360)&quot;/&gt;
    &lt;wire from=&quot;(510,460)&quot; to=&quot;(520,460)&quot;/&gt;
    &lt;wire from=&quot;(930,600)&quot; to=&quot;(930,660)&quot;/&gt;
    &lt;wire from=&quot;(940,610)&quot; to=&quot;(940,670)&quot;/&gt;
    &lt;wire from=&quot;(300,570)&quot; to=&quot;(310,570)&quot;/&gt;
    &lt;wire from=&quot;(360,630)&quot; to=&quot;(370,630)&quot;/&gt;
    &lt;wire from=&quot;(380,490)&quot; to=&quot;(390,490)&quot;/&gt;
    &lt;wire from=&quot;(320,430)&quot; to=&quot;(330,430)&quot;/&gt;
    &lt;wire from=&quot;(490,480)&quot; to=&quot;(490,530)&quot;/&gt;
    &lt;wire from=&quot;(1090,120)&quot; to=&quot;(1090,160)&quot;/&gt;
    &lt;wire from=&quot;(1020,490)&quot; to=&quot;(1030,490)&quot;/&gt;
    &lt;wire from=&quot;(1220,90)&quot; to=&quot;(1220,130)&quot;/&gt;
    &lt;wire from=&quot;(850,480)&quot; to=&quot;(860,480)&quot;/&gt;
    &lt;wire from=&quot;(680,470)&quot; to=&quot;(690,470)&quot;/&gt;
    &lt;wire from=&quot;(760,70)&quot; to=&quot;(770,70)&quot;/&gt;
    &lt;wire from=&quot;(720,350)&quot; to=&quot;(730,350)&quot;/&gt;
    &lt;wire from=&quot;(1270,250)&quot; to=&quot;(1290,250)&quot;/&gt;
    &lt;wire from=&quot;(630,580)&quot; to=&quot;(640,580)&quot;/&gt;
    &lt;wire from=&quot;(760,380)&quot; to=&quot;(880,380)&quot;/&gt;
    &lt;wire from=&quot;(630,270)&quot; to=&quot;(630,280)&quot;/&gt;
    &lt;wire from=&quot;(620,260)&quot; to=&quot;(620,270)&quot;/&gt;
    &lt;wire from=&quot;(610,250)&quot; to=&quot;(610,260)&quot;/&gt;
    &lt;wire from=&quot;(1150,560)&quot; to=&quot;(1190,560)&quot;/&gt;
    &lt;wire from=&quot;(460,630)&quot; to=&quot;(640,630)&quot;/&gt;
    &lt;wire from=&quot;(990,670)&quot; to=&quot;(1180,670)&quot;/&gt;
    &lt;wire from=&quot;(630,360)&quot; to=&quot;(670,360)&quot;/&gt;
    &lt;wire from=&quot;(500,680)&quot; to=&quot;(670,680)&quot;/&gt;
    &lt;wire from=&quot;(560,200)&quot; to=&quot;(560,230)&quot;/&gt;
    &lt;wire from=&quot;(800,280)&quot; to=&quot;(800,300)&quot;/&gt;
    &lt;wire from=&quot;(400,200)&quot; to=&quot;(400,230)&quot;/&gt;
    &lt;wire from=&quot;(1250,250)&quot; to=&quot;(1250,260)&quot;/&gt;
    &lt;wire from=&quot;(830,690)&quot; to=&quot;(1000,690)&quot;/&gt;
    &lt;wire from=&quot;(1090,570)&quot; to=&quot;(1090,620)&quot;/&gt;
    &lt;wire from=&quot;(1190,310)&quot; to=&quot;(1200,310)&quot;/&gt;
    &lt;wire from=&quot;(1210,170)&quot; to=&quot;(1220,170)&quot;/&gt;
    &lt;wire from=&quot;(1280,80)&quot; to=&quot;(1290,80)&quot;/&gt;
    &lt;wire from=&quot;(970,90)&quot; to=&quot;(980,90)&quot;/&gt;
    &lt;wire from=&quot;(1140,140)&quot; to=&quot;(1140,180)&quot;/&gt;
    &lt;wire from=&quot;(1000,120)&quot; to=&quot;(1010,120)&quot;/&gt;
    &lt;wire from=&quot;(750,550)&quot; to=&quot;(750,600)&quot;/&gt;
    &lt;wire from=&quot;(840,120)&quot; to=&quot;(850,120)&quot;/&gt;
    &lt;wire from=&quot;(800,400)&quot; to=&quot;(810,400)&quot;/&gt;
    &lt;wire from=&quot;(580,540)&quot; to=&quot;(580,590)&quot;/&gt;
    &lt;wire from=&quot;(920,560)&quot; to=&quot;(920,610)&quot;/&gt;
    &lt;wire from=&quot;(790,590)&quot; to=&quot;(790,640)&quot;/&gt;
    &lt;wire from=&quot;(800,600)&quot; to=&quot;(800,650)&quot;/&gt;
    &lt;wire from=&quot;(270,120)&quot; to=&quot;(650,120)&quot;/&gt;
    &lt;wire from=&quot;(650,260)&quot; to=&quot;(650,270)&quot;/&gt;
    &lt;wire from=&quot;(230,110)&quot; to=&quot;(230,690)&quot;/&gt;
    &lt;wire from=&quot;(260,590)&quot; to=&quot;(310,590)&quot;/&gt;
    &lt;wire from=&quot;(280,450)&quot; to=&quot;(330,450)&quot;/&gt;
    &lt;wire from=&quot;(290,300)&quot; to=&quot;(340,300)&quot;/&gt;
    &lt;wire from=&quot;(510,440)&quot; to=&quot;(510,460)&quot;/&gt;
    &lt;wire from=&quot;(880,330)&quot; to=&quot;(880,350)&quot;/&gt;
    &lt;wire from=&quot;(850,460)&quot; to=&quot;(850,480)&quot;/&gt;
    &lt;wire from=&quot;(810,640)&quot; to=&quot;(980,640)&quot;/&gt;
    &lt;wire from=&quot;(1020,470)&quot; to=&quot;(1020,490)&quot;/&gt;
    &lt;wire from=&quot;(960,280)&quot; to=&quot;(960,360)&quot;/&gt;
    &lt;wire from=&quot;(680,450)&quot; to=&quot;(680,470)&quot;/&gt;
    &lt;wire from=&quot;(850,460)&quot; to=&quot;(1280,460)&quot;/&gt;
    &lt;wire from=&quot;(800,360)&quot; to=&quot;(820,360)&quot;/&gt;
    &lt;wire from=&quot;(840,560)&quot; to=&quot;(860,560)&quot;/&gt;
    &lt;wire from=&quot;(560,330)&quot; to=&quot;(560,370)&quot;/&gt;
    &lt;wire from=&quot;(960,360)&quot; to=&quot;(980,360)&quot;/&gt;
    &lt;wire from=&quot;(300,80)&quot; to=&quot;(390,80)&quot;/&gt;
    &lt;wire from=&quot;(1010,570)&quot; to=&quot;(1030,570)&quot;/&gt;
    &lt;wire from=&quot;(670,550)&quot; to=&quot;(690,550)&quot;/&gt;
    &lt;wire from=&quot;(1150,80)&quot; to=&quot;(1160,80)&quot;/&gt;
    &lt;wire from=&quot;(660,530)&quot; to=&quot;(690,530)&quot;/&gt;
    &lt;wire from=&quot;(500,540)&quot; to=&quot;(520,540)&quot;/&gt;
    &lt;wire from=&quot;(1000,550)&quot; to=&quot;(1030,550)&quot;/&gt;
    &lt;wire from=&quot;(830,540)&quot; to=&quot;(860,540)&quot;/&gt;
    &lt;wire from=&quot;(400,330)&quot; to=&quot;(400,370)&quot;/&gt;
    &lt;wire from=&quot;(860,410)&quot; to=&quot;(890,410)&quot;/&gt;
    &lt;wire from=&quot;(490,260)&quot; to=&quot;(490,300)&quot;/&gt;
    &lt;wire from=&quot;(490,220)&quot; to=&quot;(500,220)&quot;/&gt;
    &lt;wire from=&quot;(330,220)&quot; to=&quot;(340,220)&quot;/&gt;
    &lt;wire from=&quot;(630,80)&quot; to=&quot;(630,140)&quot;/&gt;
    &lt;wire from=&quot;(1040,290)&quot; to=&quot;(1050,290)&quot;/&gt;
    &lt;wire from=&quot;(980,550)&quot; to=&quot;(990,550)&quot;/&gt;
    &lt;wire from=&quot;(330,260)&quot; to=&quot;(330,320)&quot;/&gt;
    &lt;wire from=&quot;(810,540)&quot; to=&quot;(820,540)&quot;/&gt;
    &lt;wire from=&quot;(880,290)&quot; to=&quot;(890,290)&quot;/&gt;
    &lt;wire from=&quot;(1140,60)&quot; to=&quot;(1160,60)&quot;/&gt;
    &lt;wire from=&quot;(640,530)&quot; to=&quot;(650,530)&quot;/&gt;
    &lt;wire from=&quot;(900,160)&quot; to=&quot;(900,170)&quot;/&gt;
    &lt;wire from=&quot;(480,440)&quot; to=&quot;(480,580)&quot;/&gt;
    &lt;wire from=&quot;(250,620)&quot; to=&quot;(360,620)&quot;/&gt;
    &lt;wire from=&quot;(270,480)&quot; to=&quot;(380,480)&quot;/&gt;
    &lt;wire from=&quot;(380,440)&quot; to=&quot;(480,440)&quot;/&gt;
    &lt;wire from=&quot;(640,540)&quot; to=&quot;(640,580)&quot;/&gt;
    &lt;wire from=&quot;(990,200)&quot; to=&quot;(1010,200)&quot;/&gt;
    &lt;wire from=&quot;(730,310)&quot; to=&quot;(730,350)&quot;/&gt;
    &lt;wire from=&quot;(810,550)&quot; to=&quot;(810,590)&quot;/&gt;
    &lt;wire from=&quot;(1080,620)&quot; to=&quot;(1090,620)&quot;/&gt;
    &lt;wire from=&quot;(1120,340)&quot; to=&quot;(1130,340)&quot;/&gt;
    &lt;wire from=&quot;(980,560)&quot; to=&quot;(980,600)&quot;/&gt;
    &lt;wire from=&quot;(470,280)&quot; to=&quot;(630,280)&quot;/&gt;
    &lt;wire from=&quot;(1140,80)&quot; to=&quot;(1140,140)&quot;/&gt;
    &lt;wire from=&quot;(670,120)&quot; to=&quot;(670,220)&quot;/&gt;
    &lt;wire from=&quot;(460,320)&quot; to=&quot;(470,320)&quot;/&gt;
    &lt;wire from=&quot;(300,540)&quot; to=&quot;(380,540)&quot;/&gt;
    &lt;wire from=&quot;(320,400)&quot; to=&quot;(400,400)&quot;/&gt;
    &lt;wire from=&quot;(960,180)&quot; to=&quot;(970,180)&quot;/&gt;
    &lt;wire from=&quot;(910,610)&quot; to=&quot;(920,610)&quot;/&gt;
    &lt;wire from=&quot;(630,210)&quot; to=&quot;(630,260)&quot;/&gt;
    &lt;wire from=&quot;(620,200)&quot; to=&quot;(620,250)&quot;/&gt;
    &lt;wire from=&quot;(750,130)&quot; to=&quot;(760,130)&quot;/&gt;
    &lt;wire from=&quot;(740,600)&quot; to=&quot;(750,600)&quot;/&gt;
    &lt;wire from=&quot;(1170,540)&quot; to=&quot;(1190,540)&quot;/&gt;
    &lt;wire from=&quot;(570,590)&quot; to=&quot;(580,590)&quot;/&gt;
    &lt;wire from=&quot;(620,320)&quot; to=&quot;(630,320)&quot;/&gt;
    &lt;wire from=&quot;(660,230)&quot; to=&quot;(970,230)&quot;/&gt;
    &lt;wire from=&quot;(640,590)&quot; to=&quot;(690,590)&quot;/&gt;
    &lt;wire from=&quot;(310,270)&quot; to=&quot;(310,470)&quot;/&gt;
    &lt;wire from=&quot;(830,60)&quot; to=&quot;(830,80)&quot;/&gt;
    &lt;wire from=&quot;(660,50)&quot; to=&quot;(660,70)&quot;/&gt;
    &lt;wire from=&quot;(690,80)&quot; to=&quot;(690,120)&quot;/&gt;
    &lt;wire from=&quot;(1220,90)&quot; to=&quot;(1230,90)&quot;/&gt;
    &lt;wire from=&quot;(630,290)&quot; to=&quot;(650,290)&quot;/&gt;
    &lt;wire from=&quot;(280,110)&quot; to=&quot;(280,410)&quot;/&gt;
    &lt;wire from=&quot;(660,380)&quot; to=&quot;(750,380)&quot;/&gt;
    &lt;wire from=&quot;(940,270)&quot; to=&quot;(970,270)&quot;/&gt;
    &lt;wire from=&quot;(430,620)&quot; to=&quot;(430,660)&quot;/&gt;
    &lt;wire from=&quot;(1250,260)&quot; to=&quot;(1280,260)&quot;/&gt;
    &lt;wire from=&quot;(330,320)&quot; to=&quot;(340,320)&quot;/&gt;
    &lt;wire from=&quot;(1090,160)&quot; to=&quot;(1090,200)&quot;/&gt;
    &lt;wire from=&quot;(830,180)&quot; to=&quot;(840,180)&quot;/&gt;
    &lt;wire from=&quot;(790,300)&quot; to=&quot;(800,300)&quot;/&gt;
    &lt;wire from=&quot;(880,390)&quot; to=&quot;(890,390)&quot;/&gt;
    &lt;wire from=&quot;(1020,470)&quot; to=&quot;(1290,470)&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(400,310)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1270,180)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(640,530)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(360,580)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1250,300)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(390,230)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(900,130)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(720,410)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1100,300)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1130,80)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(570,590)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(820,80)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1210,190)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(390,370)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(560,90)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
      &lt;a name=&quot;label&quot; val=&quot;Input A&quot;/&gt;
      &lt;a name=&quot;labelfont&quot; val=&quot;Monospaced plain 12&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(410,60)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;bit0&quot; val=&quot;3&quot;/&gt;
      &lt;a name=&quot;bit1&quot; val=&quot;2&quot;/&gt;
      &lt;a name=&quot;bit2&quot; val=&quot;1&quot;/&gt;
      &lt;a name=&quot;bit3&quot; val=&quot;0&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(910,610)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(560,310)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(720,350)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(790,300)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(620,180)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(550,230)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(400,170)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1190,290)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(620,320)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(380,440)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1280,80)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(750,130)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1150,560)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(430,550)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(880,290)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(740,480)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(570,530)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(1210,520)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(370,510)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1030,350)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(940,400)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1040,290)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(350,650)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(570,470)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(450,410)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(570,90)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;fanout&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;incoming&quot; val=&quot;4&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(910,70)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(980,550)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(910,550)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(940,310)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(1220,520)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;output&quot; val=&quot;true&quot;/&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;label&quot; val=&quot;Output&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;south&quot;/&gt;
      &lt;a name=&quot;labelfont&quot; val=&quot;Monospaced plain 12&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(740,600)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(560,170)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(970,90)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(260,90)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;south&quot;/&gt;
      &lt;a name=&quot;width&quot; val=&quot;2&quot;/&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
      &lt;a name=&quot;label&quot; val=&quot;Control&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;north&quot;/&gt;
      &lt;a name=&quot;labelfont&quot; val=&quot;Monospaced plain 12&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(460,180)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(910,490)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1070,70)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(420,620)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(730,290)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1180,350)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(460,320)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(860,410)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(430,60)&quot; name=&quot;Pin&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;width&quot; val=&quot;4&quot;/&gt;
      &lt;a name=&quot;tristate&quot; val=&quot;false&quot;/&gt;
      &lt;a name=&quot;label&quot; val=&quot;Input B&quot;/&gt;
      &lt;a name=&quot;labelloc&quot; val=&quot;east&quot;/&gt;
      &lt;a name=&quot;labelfont&quot; val=&quot;Monospaced plain 12&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(870,350)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1060,130)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(810,540)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1080,620)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(960,180)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(550,370)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(760,70)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1060,190)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(890,190)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(440,480)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1210,130)&quot; name=&quot;OR Gate&quot;/&gt;
    &lt;comp lib=&quot;0&quot; loc=&quot;(260,100)&quot; name=&quot;Splitter&quot;&gt;
      &lt;a name=&quot;facing&quot; val=&quot;west&quot;/&gt;
      &lt;a name=&quot;bit0&quot; val=&quot;1&quot;/&gt;
      &lt;a name=&quot;bit1&quot; val=&quot;0&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1220,70)&quot; name=&quot;NAND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(750,190)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1080,560)&quot; name=&quot;AND Gate&quot;/&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(1080,500)&quot; name=&quot;AND Gate&quot;&gt;
      &lt;a name=&quot;negate3&quot; val=&quot;true&quot;/&gt;
    &lt;/comp&gt;
    &lt;comp lib=&quot;1&quot; loc=&quot;(740,540)&quot; name=&quot;AND Gate&quot;/&gt;
  &lt;/circuit&gt;
&lt;/project&gt;</code></pre>
</blockquote>
END
);
